mirror of
https://github.com/astral-sh/ruff
synced 2026-01-10 08:04:26 -05:00
[ty] Use an interval map for scopes by expression (#19025)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user