Skip to content

Insert member-attribute macros right before modifiers #70751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

DougGregor
Copy link
Member

The insertion position of member-attribute macros was right before the first attribute. However, ASTScope would visit the as-written attributes first, so the scope tree entries would be out of order, causing name lookup to fail.

Move the insertion position to where a new modifier would go, i.e., after the explicitly-written attributes. Fixes rdar://120496864.

The insertion position of member-attribute macros was right before the
first attribute. However, ASTScope would visit the as-written attributes
first, so the scope tree entries would be out of order, causing name
lookup to fail.

Move the insertion position to where a new modifier would go, i.e.,
after the explicitly-written attributes. Fixes rdar://120496864.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor enabled auto-merge January 6, 2024 02:02
@DougGregor DougGregor merged commit 043a13a into swiftlang:main Jan 6, 2024
@DougGregor DougGregor deleted the member-attribute-insertion-after-written-attrs branch January 6, 2024 05:40
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.

1 participant