Skip to content

Preparation to switch RawTokenKind to be a trivial enum again #1333

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

Merged

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Feb 9, 2023

This moves a little more users of RawTokenKind to TokenSpec, which will make it easier to switch RawTokenKind to be a trivial enum again in a follow-up PR.

Performance-wise there is no regression associated with this change.

@ahoppen ahoppen force-pushed the ahoppen/rawtokenkind-trivial-enum-prep branch from 219196b to 4162710 Compare February 9, 2023 22:34
@ahoppen ahoppen requested review from rintaro and bnbarham February 9, 2023 22:34
@ahoppen
Copy link
Member Author

ahoppen commented Feb 9, 2023

@swift-ci Please test

Comment on lines -69 to +70
case TokenSpec(._backDeploy): self = .backDeployed
case TokenSpec(._backDeploy): self = ._backDeploy
Copy link
Contributor

Choose a reason for hiding this comment

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

Whoops!

@ahoppen ahoppen changed the title Preparation to switch RawTokenKind to be a trivial enum again 🚥 #1328 Preparation to switch RawTokenKind to be a trivial enum again Feb 10, 2023
@ahoppen ahoppen merged commit 43568e9 into swiftlang:main Feb 10, 2023
@ahoppen ahoppen deleted the ahoppen/rawtokenkind-trivial-enum-prep branch February 10, 2023 06:16
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