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

[generator] Refactor enum writing to use SourceWriters. #1063

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

jpobst
Copy link
Contributor

@jpobst jpobst commented Dec 6, 2022

Refactor EnumGenerator to use SourceWriters instead of a direct TextWriter. This will make it possible to use our existing code to apply [PlatformOSSupported] attributes to enums in a future PR.

This is a separate PR to help verify there was no output changed from the refactor.

Tested with ApiCompat on xamarin/xamarin-android#7619 to help ensure no changes.

@jpobst jpobst marked this pull request as ready for review December 8, 2022 15:20
@jpobst jpobst requested a review from jonpryor December 8, 2022 15:20
@jonpryor jonpryor merged commit 149d70f into main Dec 8, 2022
@jonpryor jonpryor deleted the enum-refactor branch December 8, 2022 23:35
jonpryor pushed a commit to xamarin/xamarin-android that referenced this pull request Dec 12, 2022
Changes: xamarin/java.interop@3a9f770...149d70f

  * xamarin/java.interop@149d70fe: [generator] Refactor enum writing to use SourceWriters (xamarin/java.interop#1063)
  * xamarin/java.interop@c2daa9f0: [Java.Interop.Tools.Cecil] DirectoryAssemblyResolver & File.Exists() (xamarin/java.interop#1065)
  * xamarin/java.interop@8ab9d33a: [Java.Interop.Tools.TypeNameMappings] improve `ToJniNameFromAttributesForAndroid` (xamarin/java.interop#1064)
  * xamarin/java.interop@09f8da26: [JavaCallableWrappers] avoid `string.Format()` (xamarin/java.interop#1061)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants