Skip to content

Remove macro special cases #453

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

Merged
merged 3 commits into from
Dec 11, 2022

Conversation

DougGregor
Copy link
Member

Remove special-case logic for a number of expressions that will be subsumed by MacroExpansionExprSyntax and MacroExpansionDeclSyntax: #selector, #keyPath, #file, #line, #column, #function, #warning, #error, #dsohandle.

The one formatting change corresponds to the swift-syntax change in swiftlang/swift-syntax#1132 to use MacroExpansionExprSyntax for #selector. That PR also removes the syntax nodes we stop using here.

@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#1132

@swift-ci please test

@DougGregor DougGregor merged commit 94c7429 into swiftlang:main Dec 11, 2022
@DougGregor DougGregor deleted the remove-macro-special-cases branch December 11, 2022 02:09
@DougGregor
Copy link
Member Author

@allevato I hope it's alright that I merged this, but please ping if you'd like me to follow a different process. It passed PR testing via swiftlang/swift-syntax#1132 and I believe the formatting change was an improvement, because #selector is behaving more like a normal call or a macro now.

@allevato
Copy link
Member

@DougGregor It's all good! Please feel free to merge swift-format changes that unblock swift-syntax work. I agree that that looks like the right formatting change to make the "new" macro consistent with other similar syntax.

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.

2 participants