mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Add MethodCall and FieldAccess variants to ImmediateLocation
This commit is contained in:
parent
dbdfeeeff9
commit
9271941a95
7 changed files with 81 additions and 49 deletions
|
@ -154,7 +154,7 @@ impl<'a> FunctionRender<'a> {
|
|||
};
|
||||
|
||||
let mut params_pats = Vec::new();
|
||||
let params_ty = if self.ctx.completion.dot_receiver.is_some() || self.receiver.is_some() {
|
||||
let params_ty = if self.ctx.completion.has_dot_receiver() || self.receiver.is_some() {
|
||||
self.func.method_params(self.ctx.db()).unwrap_or_default()
|
||||
} else {
|
||||
if let Some(s) = ast_params.self_param() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue