Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented Jul 24, 2023

Three cleanups to TokenSpec:

  • Flatten the TokenSpec class hierarchy (which dates back to the Python days) into a single struct
  • Remove TokenSpec.associatedValueClass: At some point I introduce the abstraction with the idea to also have a TokenKind with associated values for pound keywords and operators but that never happened
  • Rename TokenSpec.swiftKind to varOrCaseName and change it from a string to TokenSyntax.

@ahoppen ahoppen requested a review from bnbarham July 24, 2023 16:37
@ahoppen
Copy link
Member Author

ahoppen commented Jul 24, 2023

@swift-ci Please test

@ahoppen ahoppen force-pushed the ahoppen/simplify-tokenspec branch from bd93fbd to 95328cc Compare July 25, 2023 16:32
@ahoppen
Copy link
Member Author

ahoppen commented Jul 25, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jul 25, 2023

@swift-ci Please test Windows

@ahoppen ahoppen merged commit cb134fa into swiftlang:main Jul 26, 2023
@ahoppen ahoppen deleted the ahoppen/simplify-tokenspec branch July 26, 2023 22:21
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.

3 participants