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

Side by Side Diff: pkg/analysis_server/lib/src/generated_protocol.dart

Issue 840953008: Alternate status page (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Sorted and formatted Created 5 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/tool/spec/generate_files". 7 // "pkg/analysis_server/tool/spec/generate_files".
8 8
9 part of protocol; 9 part of protocol;
10 /** 10 /**
(...skipping 5276 matching lines...) Expand 10 before | Expand all | Expand 10 after
5287 * ERROR 5287 * ERROR
5288 * } 5288 * }
5289 */ 5289 */
5290 class AnalysisErrorSeverity implements Enum { 5290 class AnalysisErrorSeverity implements Enum {
5291 static const INFO = const AnalysisErrorSeverity._("INFO"); 5291 static const INFO = const AnalysisErrorSeverity._("INFO");
5292 5292
5293 static const WARNING = const AnalysisErrorSeverity._("WARNING"); 5293 static const WARNING = const AnalysisErrorSeverity._("WARNING");
5294 5294
5295 static const ERROR = const AnalysisErrorSeverity._("ERROR"); 5295 static const ERROR = const AnalysisErrorSeverity._("ERROR");
5296 5296
5297 /**
5298 * A list containing all of the services that are defined.
5299 */
5300 static const List<AnalysisErrorSeverity> VALUES = const <AnalysisErrorSeverity >[INFO, WARNING, ERROR];
Paul Berry 2015/01/20 17:28:11 Not a blocker to this CL, but would it be better t
Brian Wilkerson 2015/01/20 17:46:34 These lists *are* being generated (and this file i
5301
5297 final String name; 5302 final String name;
5298 5303
5299 const AnalysisErrorSeverity._(this.name); 5304 const AnalysisErrorSeverity._(this.name);
5300 5305
5301 factory AnalysisErrorSeverity(String name) { 5306 factory AnalysisErrorSeverity(String name) {
5302 switch (name) { 5307 switch (name) {
5303 case "INFO": 5308 case "INFO":
5304 return INFO; 5309 return INFO;
5305 case "WARNING": 5310 case "WARNING":
5306 return WARNING; 5311 return WARNING;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
5351 static const LINT = const AnalysisErrorType._("LINT"); 5356 static const LINT = const AnalysisErrorType._("LINT");
5352 5357
5353 static const STATIC_TYPE_WARNING = const AnalysisErrorType._("STATIC_TYPE_WARN ING"); 5358 static const STATIC_TYPE_WARNING = const AnalysisErrorType._("STATIC_TYPE_WARN ING");
5354 5359
5355 static const STATIC_WARNING = const AnalysisErrorType._("STATIC_WARNING"); 5360 static const STATIC_WARNING = const AnalysisErrorType._("STATIC_WARNING");
5356 5361
5357 static const SYNTACTIC_ERROR = const AnalysisErrorType._("SYNTACTIC_ERROR"); 5362 static const SYNTACTIC_ERROR = const AnalysisErrorType._("SYNTACTIC_ERROR");
5358 5363
5359 static const TODO = const AnalysisErrorType._("TODO"); 5364 static const TODO = const AnalysisErrorType._("TODO");
5360 5365
5366 /**
5367 * A list containing all of the services that are defined.
5368 */
5369 static const List<AnalysisErrorType> VALUES = const <AnalysisErrorType>[CHECKE D_MODE_COMPILE_TIME_ERROR, COMPILE_TIME_ERROR, HINT, LINT, STATIC_TYPE_WARNING, STATIC_WARNING, SYNTACTIC_ERROR, TODO];
5370
5361 final String name; 5371 final String name;
5362 5372
5363 const AnalysisErrorType._(this.name); 5373 const AnalysisErrorType._(this.name);
5364 5374
5365 factory AnalysisErrorType(String name) { 5375 factory AnalysisErrorType(String name) {
5366 switch (name) { 5376 switch (name) {
5367 case "CHECKED_MODE_COMPILE_TIME_ERROR": 5377 case "CHECKED_MODE_COMPILE_TIME_ERROR":
5368 return CHECKED_MODE_COMPILE_TIME_ERROR; 5378 return CHECKED_MODE_COMPILE_TIME_ERROR;
5369 case "COMPILE_TIME_ERROR": 5379 case "COMPILE_TIME_ERROR":
5370 return COMPILE_TIME_ERROR; 5380 return COMPILE_TIME_ERROR;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
5564 static const INVALIDATE = const AnalysisService._("INVALIDATE"); 5574 static const INVALIDATE = const AnalysisService._("INVALIDATE");
5565 5575
5566 static const NAVIGATION = const AnalysisService._("NAVIGATION"); 5576 static const NAVIGATION = const AnalysisService._("NAVIGATION");
5567 5577
5568 static const OCCURRENCES = const AnalysisService._("OCCURRENCES"); 5578 static const OCCURRENCES = const AnalysisService._("OCCURRENCES");
5569 5579
5570 static const OUTLINE = const AnalysisService._("OUTLINE"); 5580 static const OUTLINE = const AnalysisService._("OUTLINE");
5571 5581
5572 static const OVERRIDES = const AnalysisService._("OVERRIDES"); 5582 static const OVERRIDES = const AnalysisService._("OVERRIDES");
5573 5583
5584 /**
5585 * A list containing all of the services that are defined.
5586 */
5587 static const List<AnalysisService> VALUES = const <AnalysisService>[FOLDING, H IGHLIGHTS, INVALIDATE, NAVIGATION, OCCURRENCES, OUTLINE, OVERRIDES];
5588
5574 final String name; 5589 final String name;
5575 5590
5576 const AnalysisService._(this.name); 5591 const AnalysisService._(this.name);
5577 5592
5578 factory AnalysisService(String name) { 5593 factory AnalysisService(String name) {
5579 switch (name) { 5594 switch (name) {
5580 case "FOLDING": 5595 case "FOLDING":
5581 return FOLDING; 5596 return FOLDING;
5582 case "HIGHLIGHTS": 5597 case "HIGHLIGHTS":
5583 return HIGHLIGHTS; 5598 return HIGHLIGHTS;
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
6126 * is the keyword. 6141 * is the keyword.
6127 */ 6142 */
6128 static const KEYWORD = const CompletionSuggestionKind._("KEYWORD"); 6143 static const KEYWORD = const CompletionSuggestionKind._("KEYWORD");
6129 6144
6130 static const NAMED_ARGUMENT = const CompletionSuggestionKind._("NAMED_ARGUMENT "); 6145 static const NAMED_ARGUMENT = const CompletionSuggestionKind._("NAMED_ARGUMENT ");
6131 6146
6132 static const OPTIONAL_ARGUMENT = const CompletionSuggestionKind._("OPTIONAL_AR GUMENT"); 6147 static const OPTIONAL_ARGUMENT = const CompletionSuggestionKind._("OPTIONAL_AR GUMENT");
6133 6148
6134 static const PARAMETER = const CompletionSuggestionKind._("PARAMETER"); 6149 static const PARAMETER = const CompletionSuggestionKind._("PARAMETER");
6135 6150
6151 /**
6152 * A list containing all of the services that are defined.
6153 */
6154 static const List<CompletionSuggestionKind> VALUES = const <CompletionSuggesti onKind>[ARGUMENT_LIST, IMPORT, IDENTIFIER, INVOCATION, KEYWORD, NAMED_ARGUMENT, OPTIONAL_ARGUMENT, PARAMETER];
6155
6136 final String name; 6156 final String name;
6137 6157
6138 const CompletionSuggestionKind._(this.name); 6158 const CompletionSuggestionKind._(this.name);
6139 6159
6140 factory CompletionSuggestionKind(String name) { 6160 factory CompletionSuggestionKind(String name) {
6141 switch (name) { 6161 switch (name) {
6142 case "ARGUMENT_LIST": 6162 case "ARGUMENT_LIST":
6143 return ARGUMENT_LIST; 6163 return ARGUMENT_LIST;
6144 case "IMPORT": 6164 case "IMPORT":
6145 return IMPORT; 6165 return IMPORT;
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
6407 static const TOP_LEVEL_VARIABLE = const ElementKind._("TOP_LEVEL_VARIABLE"); 6427 static const TOP_LEVEL_VARIABLE = const ElementKind._("TOP_LEVEL_VARIABLE");
6408 6428
6409 static const TYPE_PARAMETER = const ElementKind._("TYPE_PARAMETER"); 6429 static const TYPE_PARAMETER = const ElementKind._("TYPE_PARAMETER");
6410 6430
6411 static const UNIT_TEST_GROUP = const ElementKind._("UNIT_TEST_GROUP"); 6431 static const UNIT_TEST_GROUP = const ElementKind._("UNIT_TEST_GROUP");
6412 6432
6413 static const UNIT_TEST_TEST = const ElementKind._("UNIT_TEST_TEST"); 6433 static const UNIT_TEST_TEST = const ElementKind._("UNIT_TEST_TEST");
6414 6434
6415 static const UNKNOWN = const ElementKind._("UNKNOWN"); 6435 static const UNKNOWN = const ElementKind._("UNKNOWN");
6416 6436
6437 /**
6438 * A list containing all of the services that are defined.
6439 */
6440 static const List<ElementKind> VALUES = const <ElementKind>[CLASS, CLASS_TYPE_ ALIAS, COMPILATION_UNIT, CONSTRUCTOR, FIELD, FUNCTION, FUNCTION_TYPE_ALIAS, GETT ER, LABEL, LIBRARY, LOCAL_VARIABLE, METHOD, PARAMETER, PREFIX, SETTER, TOP_LEVEL _VARIABLE, TYPE_PARAMETER, UNIT_TEST_GROUP, UNIT_TEST_TEST, UNKNOWN];
6441
6417 final String name; 6442 final String name;
6418 6443
6419 const ElementKind._(this.name); 6444 const ElementKind._(this.name);
6420 6445
6421 factory ElementKind(String name) { 6446 factory ElementKind(String name) {
6422 switch (name) { 6447 switch (name) {
6423 case "CLASS": 6448 case "CLASS":
6424 return CLASS; 6449 return CLASS;
6425 case "CLASS_TYPE_ALIAS": 6450 case "CLASS_TYPE_ALIAS":
6426 return CLASS_TYPE_ALIAS; 6451 return CLASS_TYPE_ALIAS;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
6565 */ 6590 */
6566 class ExecutableKind implements Enum { 6591 class ExecutableKind implements Enum {
6567 static const CLIENT = const ExecutableKind._("CLIENT"); 6592 static const CLIENT = const ExecutableKind._("CLIENT");
6568 6593
6569 static const EITHER = const ExecutableKind._("EITHER"); 6594 static const EITHER = const ExecutableKind._("EITHER");
6570 6595
6571 static const NOT_EXECUTABLE = const ExecutableKind._("NOT_EXECUTABLE"); 6596 static const NOT_EXECUTABLE = const ExecutableKind._("NOT_EXECUTABLE");
6572 6597
6573 static const SERVER = const ExecutableKind._("SERVER"); 6598 static const SERVER = const ExecutableKind._("SERVER");
6574 6599
6600 /**
6601 * A list containing all of the services that are defined.
6602 */
6603 static const List<ExecutableKind> VALUES = const <ExecutableKind>[CLIENT, EITH ER, NOT_EXECUTABLE, SERVER];
6604
6575 final String name; 6605 final String name;
6576 6606
6577 const ExecutableKind._(this.name); 6607 const ExecutableKind._(this.name);
6578 6608
6579 factory ExecutableKind(String name) { 6609 factory ExecutableKind(String name) {
6580 switch (name) { 6610 switch (name) {
6581 case "CLIENT": 6611 case "CLIENT":
6582 return CLIENT; 6612 return CLIENT;
6583 case "EITHER": 6613 case "EITHER":
6584 return EITHER; 6614 return EITHER;
(...skipping 25 matching lines...) Expand all
6610 /** 6640 /**
6611 * ExecutionService 6641 * ExecutionService
6612 * 6642 *
6613 * enum { 6643 * enum {
6614 * LAUNCH_DATA 6644 * LAUNCH_DATA
6615 * } 6645 * }
6616 */ 6646 */
6617 class ExecutionService implements Enum { 6647 class ExecutionService implements Enum {
6618 static const LAUNCH_DATA = const ExecutionService._("LAUNCH_DATA"); 6648 static const LAUNCH_DATA = const ExecutionService._("LAUNCH_DATA");
6619 6649
6650 /**
6651 * A list containing all of the services that are defined.
6652 */
6653 static const List<ExecutionService> VALUES = const <ExecutionService>[LAUNCH_D ATA];
6654
6620 final String name; 6655 final String name;
6621 6656
6622 const ExecutionService._(this.name); 6657 const ExecutionService._(this.name);
6623 6658
6624 factory ExecutionService(String name) { 6659 factory ExecutionService(String name) {
6625 switch (name) { 6660 switch (name) {
6626 case "LAUNCH_DATA": 6661 case "LAUNCH_DATA":
6627 return LAUNCH_DATA; 6662 return LAUNCH_DATA;
6628 } 6663 }
6629 throw new Exception('Illegal enum value: $name'); 6664 throw new Exception('Illegal enum value: $name');
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
6661 static const COMMENT = const FoldingKind._("COMMENT"); 6696 static const COMMENT = const FoldingKind._("COMMENT");
6662 6697
6663 static const CLASS_MEMBER = const FoldingKind._("CLASS_MEMBER"); 6698 static const CLASS_MEMBER = const FoldingKind._("CLASS_MEMBER");
6664 6699
6665 static const DIRECTIVES = const FoldingKind._("DIRECTIVES"); 6700 static const DIRECTIVES = const FoldingKind._("DIRECTIVES");
6666 6701
6667 static const DOCUMENTATION_COMMENT = const FoldingKind._("DOCUMENTATION_COMMEN T"); 6702 static const DOCUMENTATION_COMMENT = const FoldingKind._("DOCUMENTATION_COMMEN T");
6668 6703
6669 static const TOP_LEVEL_DECLARATION = const FoldingKind._("TOP_LEVEL_DECLARATIO N"); 6704 static const TOP_LEVEL_DECLARATION = const FoldingKind._("TOP_LEVEL_DECLARATIO N");
6670 6705
6706 /**
6707 * A list containing all of the services that are defined.
6708 */
6709 static const List<FoldingKind> VALUES = const <FoldingKind>[COMMENT, CLASS_MEM BER, DIRECTIVES, DOCUMENTATION_COMMENT, TOP_LEVEL_DECLARATION];
6710
6671 final String name; 6711 final String name;
6672 6712
6673 const FoldingKind._(this.name); 6713 const FoldingKind._(this.name);
6674 6714
6675 factory FoldingKind(String name) { 6715 factory FoldingKind(String name) {
6676 switch (name) { 6716 switch (name) {
6677 case "COMMENT": 6717 case "COMMENT":
6678 return COMMENT; 6718 return COMMENT;
6679 case "CLASS_MEMBER": 6719 case "CLASS_MEMBER":
6680 return CLASS_MEMBER; 6720 return CLASS_MEMBER;
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
6993 static const PARAMETER = const HighlightRegionType._("PARAMETER"); 7033 static const PARAMETER = const HighlightRegionType._("PARAMETER");
6994 7034
6995 static const SETTER_DECLARATION = const HighlightRegionType._("SETTER_DECLARAT ION"); 7035 static const SETTER_DECLARATION = const HighlightRegionType._("SETTER_DECLARAT ION");
6996 7036
6997 static const TOP_LEVEL_VARIABLE = const HighlightRegionType._("TOP_LEVEL_VARIA BLE"); 7037 static const TOP_LEVEL_VARIABLE = const HighlightRegionType._("TOP_LEVEL_VARIA BLE");
6998 7038
6999 static const TYPE_NAME_DYNAMIC = const HighlightRegionType._("TYPE_NAME_DYNAMI C"); 7039 static const TYPE_NAME_DYNAMIC = const HighlightRegionType._("TYPE_NAME_DYNAMI C");
7000 7040
7001 static const TYPE_PARAMETER = const HighlightRegionType._("TYPE_PARAMETER"); 7041 static const TYPE_PARAMETER = const HighlightRegionType._("TYPE_PARAMETER");
7002 7042
7043 /**
7044 * A list containing all of the services that are defined.
7045 */
7046 static const List<HighlightRegionType> VALUES = const <HighlightRegionType>[AN NOTATION, BUILT_IN, CLASS, COMMENT_BLOCK, COMMENT_DOCUMENTATION, COMMENT_END_OF_ LINE, CONSTRUCTOR, DIRECTIVE, DYNAMIC_TYPE, ENUM, ENUM_CONSTANT, FIELD, FIELD_ST ATIC, FUNCTION, FUNCTION_DECLARATION, FUNCTION_TYPE_ALIAS, GETTER_DECLARATION, I DENTIFIER_DEFAULT, IMPORT_PREFIX, KEYWORD, LABEL, LITERAL_BOOLEAN, LITERAL_DOUBL E, LITERAL_INTEGER, LITERAL_LIST, LITERAL_MAP, LITERAL_STRING, LOCAL_VARIABLE, L OCAL_VARIABLE_DECLARATION, METHOD, METHOD_DECLARATION, METHOD_DECLARATION_STATIC , METHOD_STATIC, PARAMETER, SETTER_DECLARATION, TOP_LEVEL_VARIABLE, TYPE_NAME_DY NAMIC, TYPE_PARAMETER];
7047
7003 final String name; 7048 final String name;
7004 7049
7005 const HighlightRegionType._(this.name); 7050 const HighlightRegionType._(this.name);
7006 7051
7007 factory HighlightRegionType(String name) { 7052 factory HighlightRegionType(String name) {
7008 switch (name) { 7053 switch (name) {
7009 case "ANNOTATION": 7054 case "ANNOTATION":
7010 return ANNOTATION; 7055 return ANNOTATION;
7011 case "BUILT_IN": 7056 case "BUILT_IN":
7012 return BUILT_IN; 7057 return BUILT_IN;
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
7504 */ 7549 */
7505 class LinkedEditSuggestionKind implements Enum { 7550 class LinkedEditSuggestionKind implements Enum {
7506 static const METHOD = const LinkedEditSuggestionKind._("METHOD"); 7551 static const METHOD = const LinkedEditSuggestionKind._("METHOD");
7507 7552
7508 static const PARAMETER = const LinkedEditSuggestionKind._("PARAMETER"); 7553 static const PARAMETER = const LinkedEditSuggestionKind._("PARAMETER");
7509 7554
7510 static const TYPE = const LinkedEditSuggestionKind._("TYPE"); 7555 static const TYPE = const LinkedEditSuggestionKind._("TYPE");
7511 7556
7512 static const VARIABLE = const LinkedEditSuggestionKind._("VARIABLE"); 7557 static const VARIABLE = const LinkedEditSuggestionKind._("VARIABLE");
7513 7558
7559 /**
7560 * A list containing all of the services that are defined.
7561 */
7562 static const List<LinkedEditSuggestionKind> VALUES = const <LinkedEditSuggesti onKind>[METHOD, PARAMETER, TYPE, VARIABLE];
7563
7514 final String name; 7564 final String name;
7515 7565
7516 const LinkedEditSuggestionKind._(this.name); 7566 const LinkedEditSuggestionKind._(this.name);
7517 7567
7518 factory LinkedEditSuggestionKind(String name) { 7568 factory LinkedEditSuggestionKind(String name) {
7519 switch (name) { 7569 switch (name) {
7520 case "METHOD": 7570 case "METHOD":
7521 return METHOD; 7571 return METHOD;
7522 case "PARAMETER": 7572 case "PARAMETER":
7523 return PARAMETER; 7573 return PARAMETER;
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
8417 static const INLINE_LOCAL_VARIABLE = const RefactoringKind._("INLINE_LOCAL_VAR IABLE"); 8467 static const INLINE_LOCAL_VARIABLE = const RefactoringKind._("INLINE_LOCAL_VAR IABLE");
8418 8468
8419 static const INLINE_METHOD = const RefactoringKind._("INLINE_METHOD"); 8469 static const INLINE_METHOD = const RefactoringKind._("INLINE_METHOD");
8420 8470
8421 static const MOVE_FILE = const RefactoringKind._("MOVE_FILE"); 8471 static const MOVE_FILE = const RefactoringKind._("MOVE_FILE");
8422 8472
8423 static const RENAME = const RefactoringKind._("RENAME"); 8473 static const RENAME = const RefactoringKind._("RENAME");
8424 8474
8425 static const SORT_MEMBERS = const RefactoringKind._("SORT_MEMBERS"); 8475 static const SORT_MEMBERS = const RefactoringKind._("SORT_MEMBERS");
8426 8476
8477 /**
8478 * A list containing all of the services that are defined.
8479 */
8480 static const List<RefactoringKind> VALUES = const <RefactoringKind>[CONVERT_GE TTER_TO_METHOD, CONVERT_METHOD_TO_GETTER, EXTRACT_LOCAL_VARIABLE, EXTRACT_METHOD , INLINE_LOCAL_VARIABLE, INLINE_METHOD, MOVE_FILE, RENAME, SORT_MEMBERS];
8481
8427 final String name; 8482 final String name;
8428 8483
8429 const RefactoringKind._(this.name); 8484 const RefactoringKind._(this.name);
8430 8485
8431 factory RefactoringKind(String name) { 8486 factory RefactoringKind(String name) {
8432 switch (name) { 8487 switch (name) {
8433 case "CONVERT_GETTER_TO_METHOD": 8488 case "CONVERT_GETTER_TO_METHOD":
8434 return CONVERT_GETTER_TO_METHOD; 8489 return CONVERT_GETTER_TO_METHOD;
8435 case "CONVERT_METHOD_TO_GETTER": 8490 case "CONVERT_METHOD_TO_GETTER":
8436 return CONVERT_METHOD_TO_GETTER; 8491 return CONVERT_METHOD_TO_GETTER;
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
8671 * NAMED 8726 * NAMED
8672 * } 8727 * }
8673 */ 8728 */
8674 class RefactoringMethodParameterKind implements Enum { 8729 class RefactoringMethodParameterKind implements Enum {
8675 static const REQUIRED = const RefactoringMethodParameterKind._("REQUIRED"); 8730 static const REQUIRED = const RefactoringMethodParameterKind._("REQUIRED");
8676 8731
8677 static const POSITIONAL = const RefactoringMethodParameterKind._("POSITIONAL") ; 8732 static const POSITIONAL = const RefactoringMethodParameterKind._("POSITIONAL") ;
8678 8733
8679 static const NAMED = const RefactoringMethodParameterKind._("NAMED"); 8734 static const NAMED = const RefactoringMethodParameterKind._("NAMED");
8680 8735
8736 /**
8737 * A list containing all of the services that are defined.
8738 */
8739 static const List<RefactoringMethodParameterKind> VALUES = const <RefactoringM ethodParameterKind>[REQUIRED, POSITIONAL, NAMED];
8740
8681 final String name; 8741 final String name;
8682 8742
8683 const RefactoringMethodParameterKind._(this.name); 8743 const RefactoringMethodParameterKind._(this.name);
8684 8744
8685 factory RefactoringMethodParameterKind(String name) { 8745 factory RefactoringMethodParameterKind(String name) {
8686 switch (name) { 8746 switch (name) {
8687 case "REQUIRED": 8747 case "REQUIRED":
8688 return REQUIRED; 8748 return REQUIRED;
8689 case "POSITIONAL": 8749 case "POSITIONAL":
8690 return POSITIONAL; 8750 return POSITIONAL;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
8812 */ 8872 */
8813 class RefactoringProblemSeverity implements Enum { 8873 class RefactoringProblemSeverity implements Enum {
8814 static const INFO = const RefactoringProblemSeverity._("INFO"); 8874 static const INFO = const RefactoringProblemSeverity._("INFO");
8815 8875
8816 static const WARNING = const RefactoringProblemSeverity._("WARNING"); 8876 static const WARNING = const RefactoringProblemSeverity._("WARNING");
8817 8877
8818 static const ERROR = const RefactoringProblemSeverity._("ERROR"); 8878 static const ERROR = const RefactoringProblemSeverity._("ERROR");
8819 8879
8820 static const FATAL = const RefactoringProblemSeverity._("FATAL"); 8880 static const FATAL = const RefactoringProblemSeverity._("FATAL");
8821 8881
8882 /**
8883 * A list containing all of the services that are defined.
8884 */
8885 static const List<RefactoringProblemSeverity> VALUES = const <RefactoringProbl emSeverity>[INFO, WARNING, ERROR, FATAL];
8886
8822 final String name; 8887 final String name;
8823 8888
8824 const RefactoringProblemSeverity._(this.name); 8889 const RefactoringProblemSeverity._(this.name);
8825 8890
8826 factory RefactoringProblemSeverity(String name) { 8891 factory RefactoringProblemSeverity(String name) {
8827 switch (name) { 8892 switch (name) {
8828 case "INFO": 8893 case "INFO":
8829 return INFO; 8894 return INFO;
8830 case "WARNING": 8895 case "WARNING":
8831 return WARNING; 8896 return WARNING;
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
9098 9163
9099 /** 9164 /**
9100 * The analysis server was requested to perform an action which is not 9165 * The analysis server was requested to perform an action which is not
9101 * supported. 9166 * supported.
9102 * 9167 *
9103 * This is a legacy error; it will be removed before the API reaches version 9168 * This is a legacy error; it will be removed before the API reaches version
9104 * 1.0. 9169 * 1.0.
9105 */ 9170 */
9106 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU RE"); 9171 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU RE");
9107 9172
9173 /**
9174 * A list containing all of the services that are defined.
9175 */
9176 static const List<RequestErrorCode> VALUES = const <RequestErrorCode>[CONTENT_ MODIFIED, FORMAT_INVALID_FILE, GET_ERRORS_INVALID_FILE, INVALID_OVERLAY_CHANGE, INVALID_PARAMETER, INVALID_REQUEST, SERVER_ALREADY_STARTED, SERVER_ERROR, SORT_M EMBERS_INVALID_FILE, SORT_MEMBERS_PARSE_ERRORS, UNANALYZED_PRIORITY_FILES, UNKNO WN_REQUEST, UNSUPPORTED_FEATURE];
9177
9108 final String name; 9178 final String name;
9109 9179
9110 const RequestErrorCode._(this.name); 9180 const RequestErrorCode._(this.name);
9111 9181
9112 factory RequestErrorCode(String name) { 9182 factory RequestErrorCode(String name) {
9113 switch (name) { 9183 switch (name) {
9114 case "CONTENT_MODIFIED": 9184 case "CONTENT_MODIFIED":
9115 return CONTENT_MODIFIED; 9185 return CONTENT_MODIFIED;
9116 case "FORMAT_INVALID_FILE": 9186 case "FORMAT_INVALID_FILE":
9117 return FORMAT_INVALID_FILE; 9187 return FORMAT_INVALID_FILE;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
9308 /** 9378 /**
9309 * Some other kind of search result. 9379 * Some other kind of search result.
9310 */ 9380 */
9311 static const UNKNOWN = const SearchResultKind._("UNKNOWN"); 9381 static const UNKNOWN = const SearchResultKind._("UNKNOWN");
9312 9382
9313 /** 9383 /**
9314 * A reference to a field, parameter or variable where it is being written. 9384 * A reference to a field, parameter or variable where it is being written.
9315 */ 9385 */
9316 static const WRITE = const SearchResultKind._("WRITE"); 9386 static const WRITE = const SearchResultKind._("WRITE");
9317 9387
9388 /**
9389 * A list containing all of the services that are defined.
9390 */
9391 static const List<SearchResultKind> VALUES = const <SearchResultKind>[DECLARAT ION, INVOCATION, READ, READ_WRITE, REFERENCE, UNKNOWN, WRITE];
9392
9318 final String name; 9393 final String name;
9319 9394
9320 const SearchResultKind._(this.name); 9395 const SearchResultKind._(this.name);
9321 9396
9322 factory SearchResultKind(String name) { 9397 factory SearchResultKind(String name) {
9323 switch (name) { 9398 switch (name) {
9324 case "DECLARATION": 9399 case "DECLARATION":
9325 return DECLARATION; 9400 return DECLARATION;
9326 case "INVOCATION": 9401 case "INVOCATION":
9327 return INVOCATION; 9402 return INVOCATION;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
9359 /** 9434 /**
9360 * ServerService 9435 * ServerService
9361 * 9436 *
9362 * enum { 9437 * enum {
9363 * STATUS 9438 * STATUS
9364 * } 9439 * }
9365 */ 9440 */
9366 class ServerService implements Enum { 9441 class ServerService implements Enum {
9367 static const STATUS = const ServerService._("STATUS"); 9442 static const STATUS = const ServerService._("STATUS");
9368 9443
9444 /**
9445 * A list containing all of the services that are defined.
9446 */
9447 static const List<ServerService> VALUES = const <ServerService>[STATUS];
9448
9369 final String name; 9449 final String name;
9370 9450
9371 const ServerService._(this.name); 9451 const ServerService._(this.name);
9372 9452
9373 factory ServerService(String name) { 9453 factory ServerService(String name) {
9374 switch (name) { 9454 switch (name) {
9375 case "STATUS": 9455 case "STATUS":
9376 return STATUS; 9456 return STATUS;
9377 } 9457 }
9378 throw new Exception('Illegal enum value: $name'); 9458 throw new Exception('Illegal enum value: $name');
(...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after
10965 return false; 11045 return false;
10966 } 11046 }
10967 11047
10968 @override 11048 @override
10969 int get hashCode { 11049 int get hashCode {
10970 int hash = 0; 11050 int hash = 0;
10971 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 11051 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
10972 return _JenkinsSmiHash.finish(hash); 11052 return _JenkinsSmiHash.finish(hash);
10973 } 11053 }
10974 } 11054 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698