Small change from https://dart-review.googlesource.com/c/sdk/+/153020 that Gerrit did not successfully patch before landing the PR

Change-Id: Iac0907d353d7c39c84bbe5c9364c7888e481b694
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152904
Auto-Submit: Jaime Wren <jwren@google.com>
Commit-Queue: Jaime Wren <jwren@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Jaime Wren 2020-07-01 19:34:24 +00:00 committed by commit-bot@chromium.org
parent b08ade3748
commit fffa2bd30c

View file

@ -1088,8 +1088,7 @@ class CompletionResult {
expectedCompletion.elementKind == ElementKind.ENUM ||
expectedCompletion.elementKind == ElementKind.TYPE_PARAMETER) {
return CompletionGroup.typeReference;
} else if (expectedCompletion.elementKind == ElementKind.LOCAL_VARIABLE ||
expectedCompletion.elementKind == ElementKind.PARAMETER) {
} else if (expectedCompletion.elementKind == ElementKind.LOCAL_VARIABLE) {
return CompletionGroup.localReference;
}
}