mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Cache parse trees in Semantics
This commit is contained in:
parent
c12f093716
commit
7d40763c88
3 changed files with 22 additions and 4 deletions
|
@ -405,6 +405,7 @@ impl SourceToDefCtx<'_, '_> {
|
|||
}
|
||||
|
||||
pub(super) fn find_container(&mut self, src: InFile<&SyntaxNode>) -> Option<ChildContainer> {
|
||||
let _p = tracing::span!(tracing::Level::INFO, "find_container").entered();
|
||||
let def =
|
||||
self.ancestors_with_macros(src, |this, container| this.container_to_def(container));
|
||||
if let Some(def) = def {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue