Transform a declaration.
In the case of a non-static-assert declaration, if a theorem was generated for the list of initializer declarators, it is regarded as the theorem for the declaration. This is so that the theorem can surface up to block item declarations.