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): remove is_at_*_definition #2841

Merged

Conversation

vohoanglong0107
Copy link
Contributor

Summary

Following the fix that add support for using keywords as identifiers in GraphQL, the conditions used to verify the absence of definitions have become simpler. This PR simplifies those checks in to a simple match clause, making it clearer under which condition a definition is parsed.
Additionally, this PR servers as a stepping stone toward parsing extensions in GraphQL.

Test Plan

This PR solely refactors the checks for GraphQL definitions, no tests was modified. All tests should still pass.

Copy link

codspeed-hq bot commented May 14, 2024

CodSpeed Performance Report

Merging #2841 will not alter performance

Comparing vohoanglong0107:refactor-graphql-parse-definitions (88d68ab) with main (eb42e97)

Summary

✅ 97 untouched benchmarks

@vohoanglong0107 vohoanglong0107 marked this pull request as ready for review May 14, 2024 07:04
@ematipico ematipico merged commit b1e7be6 into biomejs:main May 17, 2024
12 checks passed
@vohoanglong0107 vohoanglong0107 deleted the refactor-graphql-parse-definitions branch May 17, 2024 09:43
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.

None yet

2 participants