Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(617)

Unified Diff: pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart

Issue 1530393004: suggest IDENTIFIER not INVOCATION for dartdoc refs (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart
index 9d14fda53cbe1282b455ed2792de43cae6de7561..1002765ddb635c5990a5892601786bc9e03e099a 100644
--- a/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart
+++ b/pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart
@@ -306,7 +306,7 @@ class _LocalVisitor extends LocalDeclarationVisitor {
int relevance: DART_RELEVANCE_DEFAULT}) {
CompletionSuggestionKind kind = targetIsFunctionalArgument
? CompletionSuggestionKind.IDENTIFIER
- : CompletionSuggestionKind.INVOCATION;
+ : optype.suggestKind;
CompletionSuggestion suggestion = _createLocalSuggestion(
id, kind, isDeprecated, relevance, typeName,
classDecl: classDecl);

Powered by Google App Engine
This is Rietveld 408576698