-
Notifications
You must be signed in to change notification settings - Fork 439
fixed testAvailabilityQuery34 and testAvailabilityQueryUnavailability28 #1423
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
fixed testAvailabilityQuery34 and testAvailabilityQueryUnavailability28 #1423
Conversation
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.
Thanks for the pull request. This is looking good already. I’d prefer to implement the recovery inside the parser instead of ParseDiagnosticGenerator.swift
though because that allows us to form a SwiftSyntax tree that still represents the code the user intended to write.
So, wherever we currently parse the >=
as unexpected tokens, I would consume the >=
as unexpected text and then continue parsing 10.51
as a version.
Could you try that? If something doesn’t make sense to you, let me know.
Hope I understood the request, let me know if we can do better |
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.
One minor comment, otherwise this looks excellent to me. Thank you very much.
I had a little problem with source control 😅 now everything should be ok |
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. I’ve got one final request: Could you squash the commits in this PR. It just makes for a nicer Git history.
36272e8
to
55349f8
Compare
@ahoppen I'm sorry but looks like something went wrong, I've opened a new PR |
This is my first fix attempt for this repo. I hope I'm heading in the right direction.