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

Leverage TypeConstraintWithDefaults when parsing default values #184

Merged
merged 3 commits into from
Feb 15, 2023

Conversation

jpogran
Copy link
Contributor

@jpogran jpogran commented Feb 14, 2023

Previously we would ignore any default values when parsing types. This change now stores default values for attributes when parsing types. This will be used in the future when implementing more detailed nested expressions.

Previously we would ignore any default values when parsing types. This change now stores default values for attributes when parsing types. This will be used in the future when implementing more detailed nested expressions.
@jpogran jpogran marked this pull request as ready for review February 14, 2023 15:58
@jpogran jpogran requested a review from a team as a code owner February 14, 2023 15:58
@jpogran jpogran self-assigned this Feb 14, 2023
Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

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

Just minor suggestions in-line.

earlydecoder/decoder_test.go Outdated Show resolved Hide resolved
earlydecoder/load_module.go Outdated Show resolved Hide resolved
module/variable.go Outdated Show resolved Hide resolved
jpogran and others added 2 commits February 14, 2023 13:28
Co-authored-by: Radek Simko <radek.simko@gmail.com>
Co-authored-by: Radek Simko <radek.simko@gmail.com>
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.

Leverage the new method TypeConstraintWithDefaults and fall back to TypeConstraint
2 participants