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

Unified Diff: pkg/analysis_services/lib/completion/completion_suggestion.dart

Issue 422133002: add FUNCTION_TYPE_ALIAS to CompletionSuggestionKind (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 6 years, 5 months 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
« no previous file with comments | « pkg/analysis_server/test/completion_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_services/lib/completion/completion_suggestion.dart
diff --git a/pkg/analysis_services/lib/completion/completion_suggestion.dart b/pkg/analysis_services/lib/completion/completion_suggestion.dart
index 14e9fcbf61c78a4e67902f65cdf38a42279a703c..7a8ad14268fcef801b47649d041c54f4f60272e8 100644
--- a/pkg/analysis_services/lib/completion/completion_suggestion.dart
+++ b/pkg/analysis_services/lib/completion/completion_suggestion.dart
@@ -66,6 +66,8 @@ class CompletionSuggestionKind {
const CompletionSuggestionKind('FUNCTION');
static const CompletionSuggestionKind FUNCTION_ALIAS =
const CompletionSuggestionKind('FUNCTION_ALIAS');
+ static const CompletionSuggestionKind FUNCTION_TYPE_ALIAS =
+ const CompletionSuggestionKind('FUNCTION_TYPE_ALIAS');
static const CompletionSuggestionKind GETTER =
const CompletionSuggestionKind('GETTER');
static const CompletionSuggestionKind IMPORT =
@@ -107,6 +109,7 @@ class CompletionSuggestionKind {
if (FIELD.name == name) return FIELD;
if (FUNCTION.name == name) return FUNCTION;
if (FUNCTION_ALIAS.name == name) return FUNCTION_ALIAS;
+ if (FUNCTION_TYPE_ALIAS.name == name) return FUNCTION_TYPE_ALIAS;
if (GETTER.name == name) return GETTER;
if (IMPORT.name == name) return IMPORT;
if (LIBRARY_PREFIX.name == name) return LIBRARY_PREFIX;
@@ -149,7 +152,6 @@ class CompletionSuggestionKind {
// ElementKind.LIBRARY,
// ElementKind.LOCAL_VARIABLE,
if (kind == ElementKind.METHOD) return METHOD;
- // ElementKind.METHOD,
// ElementKind.NAME,
if (kind == ElementKind.PARAMETER) return PARAMETER;
// ElementKind.POLYMER_ATTRIBUTE,
@@ -158,7 +160,7 @@ class CompletionSuggestionKind {
// ElementKind.PREFIX,
if (kind == ElementKind.SETTER) return SETTER;
if (kind == ElementKind.TOP_LEVEL_VARIABLE) return TOP_LEVEL_VARIABLE;
- // ElementKind.FUNCTION_TYPE_ALIAS,
+ if (kind == ElementKind.FUNCTION_TYPE_ALIAS) return FUNCTION_TYPE_ALIAS;
// ElementKind.TYPE_PARAMETER,
// ElementKind.UNIVERSE
throw new ArgumentError('Unknown CompletionSuggestionKind for: $kind');
« no previous file with comments | « pkg/analysis_server/test/completion_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698