| Index: pkg/analysis_server/lib/src/services/completion/dart/named_constructor_contributor.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/dart/named_constructor_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/named_constructor_contributor.dart
|
| index 3314403f6c851afbc3341d26fe8afa3afebc7ab7..fdeca379203fe45b3f31be393f5269abadacf29c 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/dart/named_constructor_contributor.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/dart/named_constructor_contributor.dart
|
| @@ -39,7 +39,7 @@ class NamedConstructorContributor extends DartCompletionContributor {
|
| }
|
|
|
| // Resolve the target to determine the type
|
| - await request.resolveExpression(targetId);
|
| + await request.resolveContainingExpression(targetId);
|
|
|
| // Recompute the target since resolution may have changed it
|
| AstNode node = request.target.containingNode;
|
|
|