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 Enum member type escaping #556

Merged
merged 1 commit into from
May 24, 2024

Conversation

fredrikhr
Copy link
Contributor

As @tannergooding notes in comment #527 (comment) the logic to strip the Enum type name from its members can lead to Enum members starting with digits or Enum members that are otherwise invalid (e.g. C# keywords).

The logic to create a stripped Enum member name has been refactored into its own method similar to the EscapeAndStripMethodName.

@fredrikhr fredrikhr force-pushed the strip-enum-member-type-name branch from c8f106e to f3237de Compare May 24, 2024 17:55
@fredrikhr fredrikhr marked this pull request as ready for review May 24, 2024 17:56
@tannergooding tannergooding merged commit 549da90 into dotnet:main May 24, 2024
13 checks passed
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