Commit df408f5
feat: improve Debug output for index types (#92)
Changes the Debug output format for types created with `define_nonmax_u32_index_type!` from just the raw number (e.g., `42`) to include the type name (e.g., `ScopeId(42)`).
This makes debug output and error messages much clearer, especially when displaying multiple different index types together. For example, in semantic analysis snapshots, scope and symbol IDs are now clearly distinguished:
Before:
```
Scope children mismatch:
after transform: 0: [1]
rebuilt : 0: [1, 2, 4]
```
After:
```
Scope children mismatch:
after transform: ScopeId(0): [ScopeId(1)]
rebuilt : ScopeId(0): [ScopeId(1), ScopeId(2), ScopeId(4)]
```
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <[email protected]>1 parent 29d406c commit df408f5
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
| 614 | + | |
615 | 615 | | |
616 | | - | |
| 616 | + | |
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
| |||
0 commit comments