Skip to content
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

refactor(biome_graphql_parser): use is_nth_at_* #2795

Merged
merged 1 commit into from
May 10, 2024

Conversation

vohoanglong0107
Copy link
Contributor

Summary

Some parsing rule pre-conditions was difficult to understand because certain definitions optionally have a description located right before them. This PR refactors those precondition using th NthAt trait, making them easier to comprehend and also fixing a subtle bug where the parser failed to recognize an object attribute preceded by a description.

Test Plan

All tests should pass.

Copy link

codspeed-hq bot commented May 10, 2024

CodSpeed Performance Report

Merging #2795 will not alter performance

Comparing vohoanglong0107:refactor-graphql-nth-at (826223c) with main (5088667)

Summary

✅ 97 untouched benchmarks

@vohoanglong0107 vohoanglong0107 force-pushed the refactor-graphql-nth-at branch 3 times, most recently from b9614bd to 826223c Compare May 10, 2024 02:35
@vohoanglong0107 vohoanglong0107 marked this pull request as ready for review May 10, 2024 05:52
@ematipico ematipico merged commit 63a8eaa into biomejs:main May 10, 2024
23 checks passed
@vohoanglong0107 vohoanglong0107 deleted the refactor-graphql-nth-at branch May 10, 2024 10:44
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.

2 participants