Merge the different identifier contexts into one enum

This commit is contained in:
Lukas Wirth 2022-05-07 15:05:43 +02:00
parent 99fa37d6e3
commit 44c3cc100b
13 changed files with 138 additions and 91 deletions

View file

@ -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;