-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Parse/AST] Remove PoundDiagnosticDecl #79857
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
[Parse/AST] Remove PoundDiagnosticDecl #79857
Conversation
@swift-ci Please smoke test |
There is no reson to make a AST node for '#error' and '#warning' directives. Parser knows the diagnostics should be emitted or not.
0ccf414
to
7dd6d0b
Compare
@swift-ci Please smoke 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.
Yes! Love the simplification
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.
Nice!
swiftlang/llvm-project#10211 |
Now that there is no way SwitchStmt to hold AST nodes other than CaseStmt.
7dd6d0b
to
5eac58e
Compare
swiftlang/llvm-project#10211 |
1 similar comment
swiftlang/llvm-project#10211 |
There is no reason to make a AST node for '#error' and '#warning' directives. Parser knows the diagnostics should be emitted or not.
After removing
PoundDiagnosticDecl
, makeSwitchStmt
only holdCaseStmt
.