Files
carbon-lang/toolchain/sem_ir
Richard Smith ead4dbbbe3 Refactor SemIR::InstNamer (#3690)
- Rename `ScopeIndex` to `ScopeId`, because the order is not meaningful.
This avoids collisions with `SemIR::ScopeIndex`.
- Change `GetScopeFor` to use an `if constexpr` chain rather than
duplicating the numbering logic across multiple functions.
- Simplify `GetNameFor`, avoiding multiple identical overloads.

As requested in review of #3683.
2024-02-06 01:56:04 +00:00
..
2024-02-02 04:23:56 +00:00