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

Use struct fields in TokenValue enum #11475

Merged
merged 1 commit into from
May 27, 2024

Conversation

dhruvmanila
Copy link
Member

Summary

This PR updates certain TokenValue enum variants to use struct fields instead of tuple variants. The main reason is to avoid a large diff for test snapshots, so it becomes easier to diagnose any issues. This is temporary and will be updated once everything is finalized.

@dhruvmanila dhruvmanila force-pushed the dhruv/at-soft-keyword branch from b45040f to 0fbe59f Compare May 20, 2024 11:26
@dhruvmanila dhruvmanila force-pushed the dhruv/token-value-fields branch from d0072cf to c939908 Compare May 20, 2024 11:26
@dhruvmanila dhruvmanila force-pushed the dhruv/at-soft-keyword branch 3 times, most recently from 35b7a6e to 09022fa Compare May 21, 2024 04:39
@dhruvmanila dhruvmanila force-pushed the dhruv/token-value-fields branch from c939908 to 796e752 Compare May 21, 2024 04:43
@dhruvmanila dhruvmanila force-pushed the dhruv/at-soft-keyword branch from 09022fa to c64f352 Compare May 21, 2024 04:50
@dhruvmanila dhruvmanila force-pushed the dhruv/token-value-fields branch from 796e752 to ae5e7b0 Compare May 21, 2024 04:50
@dhruvmanila dhruvmanila marked this pull request as ready for review May 21, 2024 05:27
@dhruvmanila dhruvmanila requested a review from MichaReiser as a code owner May 21, 2024 05:27
@dhruvmanila dhruvmanila added the internal An internal refactor or improvement label May 21, 2024
@dhruvmanila dhruvmanila force-pushed the dhruv/at-soft-keyword branch from c64f352 to b154931 Compare May 23, 2024 10:17
@dhruvmanila dhruvmanila force-pushed the dhruv/token-value-fields branch from ae5e7b0 to ff5c204 Compare May 23, 2024 10:17
@dhruvmanila dhruvmanila force-pushed the dhruv/at-soft-keyword branch from b154931 to d391949 Compare May 23, 2024 12:44
@dhruvmanila dhruvmanila force-pushed the dhruv/token-value-fields branch from ff5c204 to 96aa59a Compare May 23, 2024 12:44
@dhruvmanila dhruvmanila force-pushed the dhruv/at-soft-keyword branch from d391949 to cbf7e6d Compare May 24, 2024 12:35
@dhruvmanila dhruvmanila force-pushed the dhruv/token-value-fields branch from 96aa59a to f77aa09 Compare May 24, 2024 12:36
@dhruvmanila dhruvmanila force-pushed the dhruv/at-soft-keyword branch from cbf7e6d to f8ffc5c Compare May 27, 2024 06:15
@dhruvmanila dhruvmanila force-pushed the dhruv/token-value-fields branch from f77aa09 to 40f65a4 Compare May 27, 2024 06:15
Base automatically changed from dhruv/at-soft-keyword to dhruv/parser-phase-2 May 27, 2024 16:00
@dhruvmanila dhruvmanila force-pushed the dhruv/token-value-fields branch from 40f65a4 to 820d872 Compare May 27, 2024 16:01
@dhruvmanila dhruvmanila merged commit adddd85 into dhruv/parser-phase-2 May 27, 2024
3 of 15 checks passed
@dhruvmanila dhruvmanila deleted the dhruv/token-value-fields branch May 27, 2024 16:02
dhruvmanila added a commit that referenced this pull request May 28, 2024
## Summary

This PR updates certain `TokenValue` enum variants to use struct fields
instead of tuple variants. The main reason is to avoid a large diff for
test snapshots, so it becomes easier to diagnose any issues. This is
temporary and will be updated once everything is finalized.
dhruvmanila added a commit that referenced this pull request May 30, 2024
## Summary

This PR updates certain `TokenValue` enum variants to use struct fields
instead of tuple variants. The main reason is to avoid a large diff for
test snapshots, so it becomes easier to diagnose any issues. This is
temporary and will be updated once everything is finalized.
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 May 31, 2024
## Summary

This PR updates certain `TokenValue` enum variants to use struct fields
instead of tuple variants. The main reason is to avoid a large diff for
test snapshots, so it becomes easier to diagnose any issues. This is
temporary and will be updated once everything is finalized.
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 updates certain `TokenValue` enum variants to use struct fields
instead of tuple variants. The main reason is to avoid a large diff for
test snapshots, so it becomes easier to diagnose any issues. This is
temporary and will be updated once everything is finalized.
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.

2 participants