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

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

Issue 934353002: Issue 22476. Outline for enums. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 6538 matching lines...) Expand 10 before | Expand all | Expand 10 after
6549 } 6549 }
6550 6550
6551 /** 6551 /**
6552 * ElementKind 6552 * ElementKind
6553 * 6553 *
6554 * enum { 6554 * enum {
6555 * CLASS 6555 * CLASS
6556 * CLASS_TYPE_ALIAS 6556 * CLASS_TYPE_ALIAS
6557 * COMPILATION_UNIT 6557 * COMPILATION_UNIT
6558 * CONSTRUCTOR 6558 * CONSTRUCTOR
6559 * ENUM
6560 * ENUM_CONSTANT
6559 * FIELD 6561 * FIELD
6560 * FUNCTION 6562 * FUNCTION
6561 * FUNCTION_TYPE_ALIAS 6563 * FUNCTION_TYPE_ALIAS
6562 * GETTER 6564 * GETTER
6563 * LABEL 6565 * LABEL
6564 * LIBRARY 6566 * LIBRARY
6565 * LOCAL_VARIABLE 6567 * LOCAL_VARIABLE
6566 * METHOD 6568 * METHOD
6567 * PARAMETER 6569 * PARAMETER
6568 * PREFIX 6570 * PREFIX
6569 * SETTER 6571 * SETTER
6570 * TOP_LEVEL_VARIABLE 6572 * TOP_LEVEL_VARIABLE
6571 * TYPE_PARAMETER 6573 * TYPE_PARAMETER
6572 * UNIT_TEST_GROUP 6574 * UNIT_TEST_GROUP
6573 * UNIT_TEST_TEST 6575 * UNIT_TEST_TEST
6574 * UNKNOWN 6576 * UNKNOWN
6575 * } 6577 * }
6576 */ 6578 */
6577 class ElementKind implements Enum { 6579 class ElementKind implements Enum {
6578 static const CLASS = const ElementKind._("CLASS"); 6580 static const CLASS = const ElementKind._("CLASS");
6579 6581
6580 static const CLASS_TYPE_ALIAS = const ElementKind._("CLASS_TYPE_ALIAS"); 6582 static const CLASS_TYPE_ALIAS = const ElementKind._("CLASS_TYPE_ALIAS");
6581 6583
6582 static const COMPILATION_UNIT = const ElementKind._("COMPILATION_UNIT"); 6584 static const COMPILATION_UNIT = const ElementKind._("COMPILATION_UNIT");
6583 6585
6584 static const CONSTRUCTOR = const ElementKind._("CONSTRUCTOR"); 6586 static const CONSTRUCTOR = const ElementKind._("CONSTRUCTOR");
6585 6587
6588 static const ENUM = const ElementKind._("ENUM");
6589
6590 static const ENUM_CONSTANT = const ElementKind._("ENUM_CONSTANT");
6591
6586 static const FIELD = const ElementKind._("FIELD"); 6592 static const FIELD = const ElementKind._("FIELD");
6587 6593
6588 static const FUNCTION = const ElementKind._("FUNCTION"); 6594 static const FUNCTION = const ElementKind._("FUNCTION");
6589 6595
6590 static const FUNCTION_TYPE_ALIAS = const ElementKind._("FUNCTION_TYPE_ALIAS"); 6596 static const FUNCTION_TYPE_ALIAS = const ElementKind._("FUNCTION_TYPE_ALIAS");
6591 6597
6592 static const GETTER = const ElementKind._("GETTER"); 6598 static const GETTER = const ElementKind._("GETTER");
6593 6599
6594 static const LABEL = const ElementKind._("LABEL"); 6600 static const LABEL = const ElementKind._("LABEL");
6595 6601
(...skipping 15 matching lines...) Expand all
6611 6617
6612 static const UNIT_TEST_GROUP = const ElementKind._("UNIT_TEST_GROUP"); 6618 static const UNIT_TEST_GROUP = const ElementKind._("UNIT_TEST_GROUP");
6613 6619
6614 static const UNIT_TEST_TEST = const ElementKind._("UNIT_TEST_TEST"); 6620 static const UNIT_TEST_TEST = const ElementKind._("UNIT_TEST_TEST");
6615 6621
6616 static const UNKNOWN = const ElementKind._("UNKNOWN"); 6622 static const UNKNOWN = const ElementKind._("UNKNOWN");
6617 6623
6618 /** 6624 /**
6619 * A list containing all of the enum values that are defined. 6625 * A list containing all of the enum values that are defined.
6620 */ 6626 */
6621 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]; 6627 static const List<ElementKind> VALUES = const <ElementKind>[CLASS, CLASS_TYPE_ ALIAS, COMPILATION_UNIT, CONSTRUCTOR, ENUM, ENUM_CONSTANT, FIELD, FUNCTION, FUNC TION_TYPE_ALIAS, GETTER, LABEL, LIBRARY, LOCAL_VARIABLE, METHOD, PARAMETER, PREF IX, SETTER, TOP_LEVEL_VARIABLE, TYPE_PARAMETER, UNIT_TEST_GROUP, UNIT_TEST_TEST, UNKNOWN];
6622 6628
6623 final String name; 6629 final String name;
6624 6630
6625 const ElementKind._(this.name); 6631 const ElementKind._(this.name);
6626 6632
6627 factory ElementKind(String name) { 6633 factory ElementKind(String name) {
6628 switch (name) { 6634 switch (name) {
6629 case "CLASS": 6635 case "CLASS":
6630 return CLASS; 6636 return CLASS;
6631 case "CLASS_TYPE_ALIAS": 6637 case "CLASS_TYPE_ALIAS":
6632 return CLASS_TYPE_ALIAS; 6638 return CLASS_TYPE_ALIAS;
6633 case "COMPILATION_UNIT": 6639 case "COMPILATION_UNIT":
6634 return COMPILATION_UNIT; 6640 return COMPILATION_UNIT;
6635 case "CONSTRUCTOR": 6641 case "CONSTRUCTOR":
6636 return CONSTRUCTOR; 6642 return CONSTRUCTOR;
6643 case "ENUM":
6644 return ENUM;
6645 case "ENUM_CONSTANT":
6646 return ENUM_CONSTANT;
6637 case "FIELD": 6647 case "FIELD":
6638 return FIELD; 6648 return FIELD;
6639 case "FUNCTION": 6649 case "FUNCTION":
6640 return FUNCTION; 6650 return FUNCTION;
6641 case "FUNCTION_TYPE_ALIAS": 6651 case "FUNCTION_TYPE_ALIAS":
6642 return FUNCTION_TYPE_ALIAS; 6652 return FUNCTION_TYPE_ALIAS;
6643 case "GETTER": 6653 case "GETTER":
6644 return GETTER; 6654 return GETTER;
6645 case "LABEL": 6655 case "LABEL":
6646 return LABEL; 6656 return LABEL;
(...skipping 4604 matching lines...) Expand 10 before | Expand all | Expand 10 after
11251 return false; 11261 return false;
11252 } 11262 }
11253 11263
11254 @override 11264 @override
11255 int get hashCode { 11265 int get hashCode {
11256 int hash = 0; 11266 int hash = 0;
11257 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 11267 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
11258 return _JenkinsSmiHash.finish(hash); 11268 return _JenkinsSmiHash.finish(hash);
11259 } 11269 }
11260 } 11270 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698