Skip to content

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

Conversation

CippoX
Copy link
Contributor

@CippoX CippoX commented Mar 19, 2023

This is my first fix attempt for this repo. I hope I'm heading in the right direction.

@CippoX CippoX requested a review from ahoppen as a code owner March 19, 2023 12:48
Copy link
Member

@ahoppen ahoppen left a 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.

@CippoX CippoX requested a review from ahoppen March 21, 2023 13:05
@CippoX
Copy link
Contributor Author

CippoX commented Mar 21, 2023

Hope I understood the request, let me know if we can do better

@CippoX CippoX requested review from kimdv and ahoppen and removed request for ahoppen and kimdv March 21, 2023 13:10
Copy link
Member

@ahoppen ahoppen left a 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.

@CippoX
Copy link
Contributor Author

CippoX commented Mar 21, 2023

I had a little problem with source control 😅 now everything should be ok

@CippoX CippoX requested a review from ahoppen March 21, 2023 16:42
Copy link
Member

@ahoppen ahoppen left a 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.

@CippoX CippoX closed this Mar 21, 2023
@CippoX CippoX force-pushed the availability-query-tests-version-comparison branch from 36272e8 to 55349f8 Compare March 21, 2023 18:43
@CippoX
Copy link
Contributor Author

CippoX commented Mar 21, 2023

@ahoppen I'm sorry but looks like something went wrong, I've opened a new PR

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.

3 participants