mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-31 23:57:30 +00:00
Merge the different identifier contexts into one enum
This commit is contained in:
parent
99fa37d6e3
commit
44c3cc100b
13 changed files with 138 additions and 91 deletions
|
@ -207,7 +207,7 @@ fn should_add_parens(ctx: &CompletionContext) -> bool {
|
|||
};
|
||||
|
||||
if matches!(
|
||||
ctx.nameref_ctx,
|
||||
ctx.nameref_ctx(),
|
||||
Some(NameRefContext { dot_access: Some(DotAccess::Method { has_parens: true, .. }), .. })
|
||||
) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue