mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Make nameresolution resilient to reparsing
We now store item id's instead of local syntax ptrs, and item ids don't change if you type inside a single function.
This commit is contained in:
parent
4d87799a4a
commit
10f4d4b74c
6 changed files with 139 additions and 84 deletions
|
@ -62,11 +62,6 @@ impl LocalSyntaxPtr {
|
|||
local: self,
|
||||
}
|
||||
}
|
||||
|
||||
// Seems unfortunate to expose
|
||||
pub(crate) fn range(self) -> TextRange {
|
||||
self.range
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue