-
Notifications
You must be signed in to change notification settings - Fork 440
Remove parsing, token, and syntax nodes for #
things subsumed by macros
#1284
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
@swift-ci please test |
@@ -52,7 +49,7 @@ final class PoundAssertTests: XCTestCase { | |||
#assert(1️⃣, "error message") | |||
"""#, | |||
diagnostics: [ | |||
DiagnosticSpec(message: "expected condition in '#assert' directive") | |||
DiagnosticSpec(message: "expected value in pound literal declaration") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn’t this be expected value in macro expansion
? I think you need to update the name_for_diagnostics
for MacroExpansionDecl
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we can do that now. Previously, we decided to call them "pound literals" because we macros weren't a thing yet.
b1fda56
to
bb2d977
Compare
#
things subsumed by macros
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. So much code gone 🤩
It's subsumed by macro expansion declarations.
Macros are a thing now, yo
74f47b0
to
5ea331a
Compare
@swift-ci please test |
Remove a number of
#
-related things that are subsumed by macros from the parser, token list, and syntax tree:#assert
, an experimental feature#warning
and#error
, to be subsumed by freestanding macros#_hasSymbol
, to be subsumed by a builtin expression macro#fileLiteral
,#colorLiteral
, and#imageLiteral