Skip to content

Use enum values instead of struct with single field#11629

Merged
dhruvmanila merged 1 commit intodhruv/parser-phase-2from
dhruv/one-field-struct
May 31, 2024
Merged

Use enum values instead of struct with single field#11629
dhruvmanila merged 1 commit intodhruv/parser-phase-2from
dhruv/one-field-struct

Conversation

@dhruvmanila
Copy link
Member

Summary

This PR is a follow-up to #11475 to use enum values where there's struct with a single field. The main motivation to use struct was to keep the snapshot update to a minimum which allows me to validate it. Now that the validation is done, we can revert it back.

Test Plan

Update the snapshots.

@dhruvmanila dhruvmanila added the internal An internal refactor or improvement label May 31, 2024
@dhruvmanila dhruvmanila requested a review from MichaReiser as a code owner May 31, 2024 04:59
@dhruvmanila dhruvmanila merged commit 19970cf into dhruv/parser-phase-2 May 31, 2024
@dhruvmanila dhruvmanila deleted the dhruv/one-field-struct branch May 31, 2024 04:59
dhruvmanila added a commit that referenced this pull request May 31, 2024
## Summary

This PR is a follow-up to #11475 to use enum values where there's struct
with a single field. The main motivation to use struct was to keep the
snapshot update to a minimum which allows me to validate it. Now that
the validation is done, we can revert it back.

## Test Plan

Update the snapshots.
dhruvmanila added a commit that referenced this pull request Jun 3, 2024
## Summary

This PR is a follow-up to #11475 to use enum values where there's struct
with a single field. The main motivation to use struct was to keep the
snapshot update to a minimum which allows me to validate it. Now that
the validation is done, we can revert it back.

## Test Plan

Update the snapshots.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant