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

[compiler] Refactor CodegenLayout #5554

Merged
merged 16 commits into from Jan 24, 2024
Merged

[compiler] Refactor CodegenLayout #5554

merged 16 commits into from Jan 24, 2024

Conversation

martinbonnin
Copy link
Contributor

This is a refactoring change only, no functional change

  • Move packageName out of CodegenSchema. packageName is only used when writing the Java/Kotlin writing phase of compilation.
  • Simplify the CodegenLayout API. The package name layout is hardcoded as extension functions, there's no need to have it in the CodegenLayout API as it's never changed.
  • Inline escapeJavaReservedKeyword usages. Those belong to the type builders where there is context about whether escaping is needed or not.
  • Remove escapeKotlinReserverdKeyword as KotlinPoet is doing it.

Copy link

netlify bot commented Jan 23, 2024

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit ed9f08b
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/65af97ea00dce300089bc84b

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.

👍

@martinbonnin martinbonnin merged commit b3a69fc into main Jan 24, 2024
9 checks passed
@martinbonnin martinbonnin deleted the layout branch January 24, 2024 13:40
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