[ty] Use an interval map for scopes by expression (#19025)

This commit is contained in:
Micha Reiser
2025-07-14 13:50:58 +02:00
committed by GitHub
parent f22da352db
commit 3560f86450
4 changed files with 136 additions and 22 deletions

View File

@@ -49,6 +49,16 @@ impl NodeIndex {
pub fn as_usize(self) -> usize {
self.0 as _
}
pub fn as_u32(self) -> u32 {
self.0
}
}
impl From<u32> for NodeIndex {
fn from(value: u32) -> Self {
NodeIndex(value)
}
}
impl From<u32> for AtomicNodeIndex {