Index: pkg/analysis_server/lib/src/services/completion/optype.dart |
diff --git a/pkg/analysis_server/lib/src/services/completion/optype.dart b/pkg/analysis_server/lib/src/services/completion/optype.dart |
index 5a04322fbad0cd195c0434f6f8ac5cdf11dc9dc9..dc389196d50bfe94e5b9dda83994b2bbe7cde43f 100644 |
--- a/pkg/analysis_server/lib/src/services/completion/optype.dart |
+++ b/pkg/analysis_server/lib/src/services/completion/optype.dart |
@@ -4,7 +4,7 @@ |
library services.completion.dart.optype; |
-import 'package:analysis_server/completion/dart/completion_target.dart'; |
+import 'package:analysis_server/src/provisional/completion/dart/completion_target.dart'; |
import 'package:analyzer/src/generated/ast.dart'; |
import 'package:analyzer/src/generated/scanner.dart'; |
@@ -295,6 +295,16 @@ class _OpTypeAstVisitor extends GeneralizingAstVisitor { |
} |
@override |
+ void visitFieldFormalParameter(FieldFormalParameter node) { |
+ if (entity == node.identifier) { |
+ optype.isPrefixed = true; |
+ } else { |
+ optype.includeReturnValueSuggestions = true; |
+ optype.includeTypeNameSuggestions = true; |
+ } |
+ } |
+ |
+ @override |
void visitForEachStatement(ForEachStatement node) { |
if (identical(entity, node.identifier)) { |
optype.includeTypeNameSuggestions = true; |
@@ -449,16 +459,6 @@ class _OpTypeAstVisitor extends GeneralizingAstVisitor { |
} |
@override |
- void visitFieldFormalParameter(FieldFormalParameter node) { |
- if (entity == node.identifier) { |
- optype.isPrefixed = true; |
- } else { |
- optype.includeReturnValueSuggestions = true; |
- optype.includeTypeNameSuggestions = true; |
- } |
- } |
- |
- @override |
void visitNormalFormalParameter(NormalFormalParameter node) { |
optype.includeReturnValueSuggestions = true; |
optype.includeTypeNameSuggestions = true; |