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:
Aleksey Kladov 2018-11-27 14:11:36 +03:00
parent 4d87799a4a
commit 10f4d4b74c
6 changed files with 139 additions and 84 deletions

View file

@ -62,11 +62,6 @@ impl LocalSyntaxPtr {
local: self,
}
}
// Seems unfortunate to expose
pub(crate) fn range(self) -> TextRange {
self.range
}
}
#[test]