Skip to content

Pass original declarations to peer and extension macro expansions#3376

Open
somiljain2006 wants to merge 1 commit into
swiftlang:mainfrom
somiljain2006:Trivia-bug
Open

Pass original declarations to peer and extension macro expansions#3376
somiljain2006 wants to merge 1 commit into
swiftlang:mainfrom
somiljain2006:Trivia-bug

Conversation

@somiljain2006

Copy link
Copy Markdown

Fixes #3151

Discover peer and extension macro attributes on the declaration after member-attribute expansion, but invoke the macro expansion using the original declaration. This matches the compiler's behavior and avoids passing rewritten declarations to attached macro implementations. Add regression tests covering member-attribute interactions with peer and extension macros.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MacroApplication should not recursively perform expansions on modified nodes

1 participant