carbon-language / carbon-lang

Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
https://github.com/carbon-language/carbon-lang/blob/trunk/README.md
Other
32.31k stars 1.48k forks source link

Add typed forms of `TokenIndex` for tokens with a known kind. #4016

Closed zygoloid closed 4 weeks ago

zygoloid commented 1 month ago

Instead of adding a Token<Kind> field to typed parse nodes that contains a TokenIndex, make the parse node directly hold a TokenIndex of a more specific kind.