mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +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
|
@ -575,7 +575,7 @@ impl<'db, 'sema> Matcher<'db, 'sema> {
|
|||
.resolve_method_call_as_callable(code)
|
||||
.and_then(|callable| {
|
||||
let (self_param, _) = callable.receiver_param(self.sema.db)?;
|
||||
Some(self_param.source(self.sema.db)?.value.kind())
|
||||
Some(self.sema.source(self_param)?.value.kind())
|
||||
})
|
||||
.unwrap_or(ast::SelfParamKind::Owned);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue