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

Refactor KeywordModifierSet to provide a class API #4003

Closed jonmeow closed 1 month ago

jonmeow commented 1 month ago

This is primarily to avoid the use of !! in code, trying not to create too much code as a result (obviously still a net increase). Also refactoring to its own file to make the enum easier to find.

Note, NodeCategory does similar, I might propose similar there if everyone's good with the API. However, that's just two, so creating something like enum_base felt like too much.