mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 11:11:05 +01:00
Trying to build a type around the common idiom we have for types based on an Id range. The primary advantage of this is it makes clear the `Id` association, and drops the `.index` use. Lowering was motivating me because it has a few of these, and check probably has more (e.g. `tree_and_subtrees_getters`), but I'm just changing a handful of examples to show the concept and see if there's agreement. I wanted to inherit from ValueStoreTypes, but name lookup didn't seem to find the types without `using` statements, at which point there didn't seem to be much reason to use inheritance.