| Index: pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart
|
| index 61a20f22f814443bca0360b4f70f4ff3730a1a7d..190e5fd1d8aff61c61b1cc589dcbcb50cd281207 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart
|
| @@ -160,11 +160,9 @@ class LocalReferenceContributor extends DartCompletionContributor {
|
| // If the target is in an expression
|
| // then resolve the outermost/entire expression
|
| AstNode node = request.target.containingNode;
|
| +
|
| if (node is Expression) {
|
| - while (node.parent is Expression) {
|
| - node = node.parent;
|
| - }
|
| - await request.resolveExpression(node);
|
| + await request.resolveContainingExpression(node);
|
|
|
| // Discard any cached target information
|
| // because it may have changed as a result of the resolution
|
|
|