| Index: pkg/analysis_server/lib/src/services/completion/dart/imported_reference_contributor.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/dart/imported_reference_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/imported_reference_contributor.dart
|
| index f169ccfab6ef719f586fe46fccd0c8674f2f978f..89dd436d8a273de5b31f4eba51a8b1f4e0506aad 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/dart/imported_reference_contributor.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/dart/imported_reference_contributor.dart
|
| @@ -57,10 +57,7 @@ class ImportedReferenceContributor extends DartCompletionContributor {
|
| // 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
|
|
|