mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Thread more HasSource::source calls through Semantics for caching
This commit is contained in:
parent
72dfbe95de
commit
8520a0c585
10 changed files with 121 additions and 84 deletions
|
@ -28,7 +28,7 @@ impl ActiveParameter {
|
|||
return None;
|
||||
}
|
||||
let param = params.swap_remove(idx);
|
||||
Some(ActiveParameter { ty: param.ty().clone(), src: param.source(sema.db) })
|
||||
Some(ActiveParameter { ty: param.ty().clone(), src: sema.source(param) })
|
||||
}
|
||||
|
||||
pub fn ident(&self) -> Option<ast::Name> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue