swift-syntax
swift-syntax copied to clipboard
Emit error for `assertMacroExpansion` when applying an attached member macro to declaration that can’t have members
Resolves Issue #2206
When we apply an attached member macro
to a declaration that cannot have members, assertMacroExpansion
fails to emit appropriate diagnostic
message.