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

Add helper to EnumTrait to check if has names #148

Merged
merged 1 commit into from
Aug 29, 2019
Merged

Conversation

mtdowling
Copy link
Member

This EnumTrait helper function checks if the trait provides a name for
each enum constant. This is useful since it will often determine whether
or not a concrete type should be generated for the enum string or if
codegen should just rely on a normal string type.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This EnumTrait helper function checks if the trait provides a name for
each enum constant. This is useful since it will often determine whether
or not a concrete type should be generated for the enum string or if
codegen should just rely on a normal string type.
@mtdowling mtdowling requested a review from kstich August 29, 2019 19:33
@mtdowling mtdowling merged commit 9a3a8e4 into master Aug 29, 2019
@mtdowling mtdowling deleted the add-enum-hasNames branch September 3, 2019 19:17
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