mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-26 00:51:17 +00:00
Playing with the macro suggestion on #4028, replace DeclKind with some templating that asserts the in-use token is an introducer token. This allows type-safe usage of Lex::TokenKind, reducing the benefit of a separate enum while improving stdout (since now this will ostream as the keyword name).
Toolchain
A design is currently maintained in Google Drive. It'll be migrated to markdown once we are confident in its stability.