Commit 3fe24ab
authored
refactor(tree): Abstract the concept of a NodeId (#15237)
### What does this PR try to resolve?
This is a follow up to #15233.
The primary goal is to make things more type safe / easier to follow
through adding semantic information to the types.
A secondary benefit is this allows us to track some light weight debug
information in NodeIds making debugging Edges a lot easier.
We could put this behind a `#[cfg(debug_asserts)]` but I'm assuming this
is cheap enough to not be worth doing that to the code.
### How should we test and review this PR?
### Additional information3 files changed
+121
-66
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments