| 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 768b0d3e54b9f64bbe49c2f8eee63f99cd7a9326..9acbf0728486aaf23daf93e7d53a8ba241b19d3c 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/optype.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/optype.dart
|
| @@ -7,6 +7,7 @@ library services.completion.dart.optype;
|
| 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';
|
| +import 'package:analysis_server/src/protocol_server.dart';
|
|
|
| /**
|
| * An [AstVisitor] for determining whether top level suggestions or invocation
|
| @@ -57,6 +58,11 @@ class OpType {
|
| bool isPrefixed = false;
|
|
|
| /**
|
| + * The suggested completion kind.
|
| + */
|
| + CompletionSuggestionKind suggestKind = CompletionSuggestionKind.INVOCATION;
|
| +
|
| + /**
|
| * Determine the suggestions that should be made based upon the given
|
| * [CompletionTarget] and [offset].
|
| */
|
| @@ -206,6 +212,7 @@ class _OpTypeAstVisitor extends GeneralizingAstVisitor {
|
| optype.includeReturnValueSuggestions = true;
|
| optype.includeTypeNameSuggestions = true;
|
| optype.includeVoidReturnSuggestions = true;
|
| + optype.suggestKind = CompletionSuggestionKind.IDENTIFIER;
|
| }
|
|
|
| void visitCompilationUnit(CompilationUnit node) {
|
|
|