[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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 {