-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Parse] Move standalone_dollar_identifier diagnosis to Parser. #34534
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
b9cfcf3
to
bc0a701
Compare
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.
Thank you for the contribution! I think this is a good idea.
165ba15
to
dbf374f
Compare
Thank you @rintaro! I resolved all your comments. |
dbf374f
to
edbdbdb
Compare
@varungandhi-apple Done! :) |
@swift-ci please smoke test |
@swift-ci Please smoke test Linux |
edbdbdb
to
191676f
Compare
Fixed the comment! :) I'm not sure why the Linux test wasn't passing.. |
@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.
Just one optional suggestion
191676f
to
028594b
Compare
@swift-ci Please smoke test |
Thank you Minhyuk! |
The compiler can't make up its mind as to whether $ is an identifier:
The first error should probably not be emitted in this context.
This PR moves dollar identifier diagnosis to Parser, and fixes the diagnosis for
identifier_within_operator_name
.This is my first time committing to Swift repository, so if there are any issues, I'd appreciate any feedbacks! :)
Resolves SR-13092.