Skip to content

bugfix: Fix enum case generation for uppercase string-literal values#160

Open
myaumura wants to merge 2 commits into
apple:mainfrom
myaumura:bugfix/fix-normalize-enum-name
Open

bugfix: Fix enum case generation for uppercase string-literal values#160
myaumura wants to merge 2 commits into
apple:mainfrom
myaumura:bugfix/fix-normalize-enum-name

Conversation

@myaumura

Copy link
Copy Markdown

Issue #148

@bioball bioball left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thank you!

Comment thread codegen/src/Generator.pkl Outdated
Comment on lines +46 to +47
// Colliding normalized names (e.g. "beetle one"/"beetle_one") are disambiguated
// with a numeric suffix in EnumGen, so distinct case names are no longer required here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[nit] This is leaving a comment on a removed line of code, which would confuse future readers of this codebase.

Suggested change
// Colliding normalized names (e.g. "beetle one"/"beetle_one") are disambiguated
// with a numeric suffix in EnumGen, so distinct case names are no longer required here.

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