Index: pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart |
diff --git a/pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart b/pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart |
index 9f31d75102252ba5909d9d18df505ec4dfec225f..ce253e9996db415516125459a08d5d022a3e2ae1 100644 |
--- a/pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart |
+++ b/pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart |
@@ -150,6 +150,24 @@ class _KeywordVisitor extends GeneralizingAstVisitor { |
} |
@override |
+ visitInstanceCreationExpression(InstanceCreationExpression node) { |
+ if (entity == node.constructorName) { |
+ // no keywords in 'new ^' expression |
+ } else { |
+ super.visitInstanceCreationExpression(node); |
+ } |
+ } |
+ |
+ @override |
+ visitMethodInvocation(MethodInvocation node) { |
+ if (entity == node.methodName) { |
+ // no keywords in '.' expression |
+ } else { |
+ super.visitMethodInvocation(node); |
+ } |
+ } |
+ |
+ @override |
visitExpressionFunctionBody(ExpressionFunctionBody node) { |
if (entity == node.expression) { |
_addExpressionKeywords(node); |