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

Unified Diff: pkg/analysis_server/lib/src/generated_protocol.dart

Issue 684183002: Refactor CompletionSuggestionKind (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 6 years, 2 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/doc/api.html ('k') | pkg/analysis_server/lib/src/protocol_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/generated_protocol.dart
diff --git a/pkg/analysis_server/lib/src/generated_protocol.dart b/pkg/analysis_server/lib/src/generated_protocol.dart
index ccc138d86566a444db1e2ffcf2c4866ba4fd2ce3..87020a8625e81b13b3247f6179f2bcba1dcc3c90 100644
--- a/pkg/analysis_server/lib/src/generated_protocol.dart
+++ b/pkg/analysis_server/lib/src/generated_protocol.dart
@@ -5561,58 +5561,41 @@ class CompletionSuggestion implements HasToJson {
*
* enum {
* ARGUMENT_LIST
- * CLASS
- * CLASS_ALIAS
- * CONSTRUCTOR
- * FIELD
- * FUNCTION
- * FUNCTION_TYPE_ALIAS
- * GETTER
* IMPORT
+ * IDENTIFIER
+ * INVOCATION
* KEYWORD
- * LABEL
- * LIBRARY_PREFIX
- * LOCAL_VARIABLE
- * METHOD
- * METHOD_NAME
* NAMED_ARGUMENT
* OPTIONAL_ARGUMENT
* PARAMETER
- * SETTER
- * TOP_LEVEL_VARIABLE
- * TYPE_PARAMETER
* }
*/
class CompletionSuggestionKind implements Enum {
static const ARGUMENT_LIST = const CompletionSuggestionKind._("ARGUMENT_LIST");
- static const CLASS = const CompletionSuggestionKind._("CLASS");
-
- static const CLASS_ALIAS = const CompletionSuggestionKind._("CLASS_ALIAS");
-
- static const CONSTRUCTOR = const CompletionSuggestionKind._("CONSTRUCTOR");
-
- static const FIELD = const CompletionSuggestionKind._("FIELD");
-
- static const FUNCTION = const CompletionSuggestionKind._("FUNCTION");
-
- static const FUNCTION_TYPE_ALIAS = const CompletionSuggestionKind._("FUNCTION_TYPE_ALIAS");
-
- static const GETTER = const CompletionSuggestionKind._("GETTER");
-
static const IMPORT = const CompletionSuggestionKind._("IMPORT");
- static const KEYWORD = const CompletionSuggestionKind._("KEYWORD");
-
- static const LABEL = const CompletionSuggestionKind._("LABEL");
-
- static const LIBRARY_PREFIX = const CompletionSuggestionKind._("LIBRARY_PREFIX");
-
- static const LOCAL_VARIABLE = const CompletionSuggestionKind._("LOCAL_VARIABLE");
+ /**
+ * The element identifier should be inserted at the completion location. For
+ * example "someMethod" in import 'myLib.dart' show someMethod; . For
+ * suggestions of this kind, the element attribute is defined and the
+ * completion field is the element's identifier.
+ */
+ static const IDENTIFIER = const CompletionSuggestionKind._("IDENTIFIER");
- static const METHOD = const CompletionSuggestionKind._("METHOD");
+ /**
+ * The element is being invoked at the completion location. For example,
+ * "someMethod" in x.someMethod(); . For suggestions of this kind, the
+ * element attribute is defined and the completion field is the element's
+ * identifier.
+ */
+ static const INVOCATION = const CompletionSuggestionKind._("INVOCATION");
- static const METHOD_NAME = const CompletionSuggestionKind._("METHOD_NAME");
+ /**
+ * A keyword is being suggested. For suggestions of this kind, the completion
+ * is the keyword.
+ */
+ static const KEYWORD = const CompletionSuggestionKind._("KEYWORD");
static const NAMED_ARGUMENT = const CompletionSuggestionKind._("NAMED_ARGUMENT");
@@ -5620,12 +5603,6 @@ class CompletionSuggestionKind implements Enum {
static const PARAMETER = const CompletionSuggestionKind._("PARAMETER");
- static const SETTER = const CompletionSuggestionKind._("SETTER");
-
- static const TOP_LEVEL_VARIABLE = const CompletionSuggestionKind._("TOP_LEVEL_VARIABLE");
-
- static const TYPE_PARAMETER = const CompletionSuggestionKind._("TYPE_PARAMETER");
-
final String name;
const CompletionSuggestionKind._(this.name);
@@ -5634,46 +5611,20 @@ class CompletionSuggestionKind implements Enum {
switch (name) {
case "ARGUMENT_LIST":
return ARGUMENT_LIST;
- case "CLASS":
- return CLASS;
- case "CLASS_ALIAS":
- return CLASS_ALIAS;
- case "CONSTRUCTOR":
- return CONSTRUCTOR;
- case "FIELD":
- return FIELD;
- case "FUNCTION":
- return FUNCTION;
- case "FUNCTION_TYPE_ALIAS":
- return FUNCTION_TYPE_ALIAS;
- case "GETTER":
- return GETTER;
case "IMPORT":
return IMPORT;
+ case "IDENTIFIER":
+ return IDENTIFIER;
+ case "INVOCATION":
+ return INVOCATION;
case "KEYWORD":
return KEYWORD;
- case "LABEL":
- return LABEL;
- case "LIBRARY_PREFIX":
- return LIBRARY_PREFIX;
- case "LOCAL_VARIABLE":
- return LOCAL_VARIABLE;
- case "METHOD":
- return METHOD;
- case "METHOD_NAME":
- return METHOD_NAME;
case "NAMED_ARGUMENT":
return NAMED_ARGUMENT;
case "OPTIONAL_ARGUMENT":
return OPTIONAL_ARGUMENT;
case "PARAMETER":
return PARAMETER;
- case "SETTER":
- return SETTER;
- case "TOP_LEVEL_VARIABLE":
- return TOP_LEVEL_VARIABLE;
- case "TYPE_PARAMETER":
- return TYPE_PARAMETER;
}
throw new Exception('Illegal enum value: $name');
}
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/lib/src/protocol_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698