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

More Apollo AST APIs #5104

Merged
merged 2 commits into from
Jul 18, 2023
Merged

More Apollo AST APIs #5104

merged 2 commits into from
Jul 18, 2023

Conversation

martinbonnin
Copy link
Contributor

Add:

  • String.paseAsGQLDocument(ParserOptions) because there's no need writing everything to utf-8 just to read it back to utf-16 (same for parseAsGQLValue, parseAsGQLType, parseAsGQLSelections)
  • File.parseAsGQLDocument(ParserOptions) because it can populate the filePath automatically
  • Path.parseAsGQLDocument(ParserOptions) because it can populate the filePath automatically

I didn't add File.parseAsGQLValue(ParserOptions) and the likes because I don't think it makes much sense to have a file that only contains a value. And it's always easier to add than remove if we need.

These APIs are introduced as Stable. The BufferedSource equivalent are still experimental because I'm not sure how much we want to commit on BufferedSource (vs kotlinx-io or maybe just exposing String APIs)

@martinbonnin martinbonnin requested a review from BoD as a code owner July 18, 2023 14:08
Base automatically changed from start-end to main July 18, 2023 18:00
Copy link
Contributor

@BoD BoD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool!

@netlify
Copy link

netlify bot commented Jul 18, 2023

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit 9345e05
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/64b6d9e17a8d92000857d770

@martinbonnin martinbonnin merged commit 03ffdf2 into main Jul 18, 2023
8 checks passed
@martinbonnin martinbonnin deleted the more-ast-apis branch July 18, 2023 18:31
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