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 3 times, most recently from 35b7a6e to 09022fa Compare May 21, 2024 04:39
@dhruvmanila dhruvmanila marked this pull request as ready for review May 21, 2024 05:27
@dhruvmanila dhruvmanila added the internal An internal refactor or improvement label May 21, 2024
Base automatically changed from dhruv/at-soft-keyword to dhruv/parser-phase-2 May 27, 2024 16:00
@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