OLD | NEW |
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 analysis_server.plugin.protocol.protocol; | 9 part of analysis_server.plugin.protocol.protocol; |
10 | 10 |
(...skipping 8040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8051 * Deprecated: this feature is always enabled. | 8051 * Deprecated: this feature is always enabled. |
8052 * | 8052 * |
8053 * True if the client wants to enable support for the proposed "null aware | 8053 * True if the client wants to enable support for the proposed "null aware |
8054 * operators" feature. | 8054 * operators" feature. |
8055 */ | 8055 */ |
8056 void set enableNullAwareOperators(bool value) { | 8056 void set enableNullAwareOperators(bool value) { |
8057 this._enableNullAwareOperators = value; | 8057 this._enableNullAwareOperators = value; |
8058 } | 8058 } |
8059 | 8059 |
8060 /** | 8060 /** |
8061 * True if the client wants to enable spport for the proposed "less | 8061 * True if the client wants to enable support for the proposed "less |
8062 * restricted mixins" proposal (DEP 34). | 8062 * restricted mixins" proposal (DEP 34). |
8063 */ | 8063 */ |
8064 bool get enableSuperMixins => _enableSuperMixins; | 8064 bool get enableSuperMixins => _enableSuperMixins; |
8065 | 8065 |
8066 /** | 8066 /** |
8067 * True if the client wants to enable spport for the proposed "less | 8067 * True if the client wants to enable support for the proposed "less |
8068 * restricted mixins" proposal (DEP 34). | 8068 * restricted mixins" proposal (DEP 34). |
8069 */ | 8069 */ |
8070 void set enableSuperMixins(bool value) { | 8070 void set enableSuperMixins(bool value) { |
8071 this._enableSuperMixins = value; | 8071 this._enableSuperMixins = value; |
8072 } | 8072 } |
8073 | 8073 |
8074 /** | 8074 /** |
8075 * True if hints that are specific to dart2js should be generated. This | 8075 * True if hints that are specific to dart2js should be generated. This |
8076 * option is ignored if generateHints is false. | 8076 * option is ignored if generateHints is false. |
8077 */ | 8077 */ |
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9448 * ElementKind | 9448 * ElementKind |
9449 * | 9449 * |
9450 * enum { | 9450 * enum { |
9451 * CLASS | 9451 * CLASS |
9452 * CLASS_TYPE_ALIAS | 9452 * CLASS_TYPE_ALIAS |
9453 * COMPILATION_UNIT | 9453 * COMPILATION_UNIT |
9454 * CONSTRUCTOR | 9454 * CONSTRUCTOR |
9455 * ENUM | 9455 * ENUM |
9456 * ENUM_CONSTANT | 9456 * ENUM_CONSTANT |
9457 * FIELD | 9457 * FIELD |
| 9458 * FILE |
9458 * FUNCTION | 9459 * FUNCTION |
9459 * FUNCTION_TYPE_ALIAS | 9460 * FUNCTION_TYPE_ALIAS |
9460 * GETTER | 9461 * GETTER |
9461 * LABEL | 9462 * LABEL |
9462 * LIBRARY | 9463 * LIBRARY |
9463 * LOCAL_VARIABLE | 9464 * LOCAL_VARIABLE |
9464 * METHOD | 9465 * METHOD |
9465 * PARAMETER | 9466 * PARAMETER |
9466 * PREFIX | 9467 * PREFIX |
9467 * SETTER | 9468 * SETTER |
(...skipping 14 matching lines...) Expand all Loading... |
9482 static const COMPILATION_UNIT = const ElementKind._("COMPILATION_UNIT"); | 9483 static const COMPILATION_UNIT = const ElementKind._("COMPILATION_UNIT"); |
9483 | 9484 |
9484 static const CONSTRUCTOR = const ElementKind._("CONSTRUCTOR"); | 9485 static const CONSTRUCTOR = const ElementKind._("CONSTRUCTOR"); |
9485 | 9486 |
9486 static const ENUM = const ElementKind._("ENUM"); | 9487 static const ENUM = const ElementKind._("ENUM"); |
9487 | 9488 |
9488 static const ENUM_CONSTANT = const ElementKind._("ENUM_CONSTANT"); | 9489 static const ENUM_CONSTANT = const ElementKind._("ENUM_CONSTANT"); |
9489 | 9490 |
9490 static const FIELD = const ElementKind._("FIELD"); | 9491 static const FIELD = const ElementKind._("FIELD"); |
9491 | 9492 |
| 9493 static const FILE = const ElementKind._("FILE"); |
| 9494 |
9492 static const FUNCTION = const ElementKind._("FUNCTION"); | 9495 static const FUNCTION = const ElementKind._("FUNCTION"); |
9493 | 9496 |
9494 static const FUNCTION_TYPE_ALIAS = const ElementKind._("FUNCTION_TYPE_ALIAS"); | 9497 static const FUNCTION_TYPE_ALIAS = const ElementKind._("FUNCTION_TYPE_ALIAS"); |
9495 | 9498 |
9496 static const GETTER = const ElementKind._("GETTER"); | 9499 static const GETTER = const ElementKind._("GETTER"); |
9497 | 9500 |
9498 static const LABEL = const ElementKind._("LABEL"); | 9501 static const LABEL = const ElementKind._("LABEL"); |
9499 | 9502 |
9500 static const LIBRARY = const ElementKind._("LIBRARY"); | 9503 static const LIBRARY = const ElementKind._("LIBRARY"); |
9501 | 9504 |
(...skipping 13 matching lines...) Expand all Loading... |
9515 | 9518 |
9516 static const UNIT_TEST_GROUP = const ElementKind._("UNIT_TEST_GROUP"); | 9519 static const UNIT_TEST_GROUP = const ElementKind._("UNIT_TEST_GROUP"); |
9517 | 9520 |
9518 static const UNIT_TEST_TEST = const ElementKind._("UNIT_TEST_TEST"); | 9521 static const UNIT_TEST_TEST = const ElementKind._("UNIT_TEST_TEST"); |
9519 | 9522 |
9520 static const UNKNOWN = const ElementKind._("UNKNOWN"); | 9523 static const UNKNOWN = const ElementKind._("UNKNOWN"); |
9521 | 9524 |
9522 /** | 9525 /** |
9523 * A list containing all of the enum values that are defined. | 9526 * A list containing all of the enum values that are defined. |
9524 */ | 9527 */ |
9525 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]; | 9528 static const List<ElementKind> VALUES = const <ElementKind>[CLASS, CLASS_TYPE_
ALIAS, COMPILATION_UNIT, CONSTRUCTOR, ENUM, ENUM_CONSTANT, FIELD, FILE, FUNCTION
, FUNCTION_TYPE_ALIAS, GETTER, LABEL, LIBRARY, LOCAL_VARIABLE, METHOD, PARAMETER
, PREFIX, SETTER, TOP_LEVEL_VARIABLE, TYPE_PARAMETER, UNIT_TEST_GROUP, UNIT_TEST
_TEST, UNKNOWN]; |
9526 | 9529 |
9527 final String name; | 9530 final String name; |
9528 | 9531 |
9529 const ElementKind._(this.name); | 9532 const ElementKind._(this.name); |
9530 | 9533 |
9531 factory ElementKind(String name) { | 9534 factory ElementKind(String name) { |
9532 switch (name) { | 9535 switch (name) { |
9533 case "CLASS": | 9536 case "CLASS": |
9534 return CLASS; | 9537 return CLASS; |
9535 case "CLASS_TYPE_ALIAS": | 9538 case "CLASS_TYPE_ALIAS": |
9536 return CLASS_TYPE_ALIAS; | 9539 return CLASS_TYPE_ALIAS; |
9537 case "COMPILATION_UNIT": | 9540 case "COMPILATION_UNIT": |
9538 return COMPILATION_UNIT; | 9541 return COMPILATION_UNIT; |
9539 case "CONSTRUCTOR": | 9542 case "CONSTRUCTOR": |
9540 return CONSTRUCTOR; | 9543 return CONSTRUCTOR; |
9541 case "ENUM": | 9544 case "ENUM": |
9542 return ENUM; | 9545 return ENUM; |
9543 case "ENUM_CONSTANT": | 9546 case "ENUM_CONSTANT": |
9544 return ENUM_CONSTANT; | 9547 return ENUM_CONSTANT; |
9545 case "FIELD": | 9548 case "FIELD": |
9546 return FIELD; | 9549 return FIELD; |
| 9550 case "FILE": |
| 9551 return FILE; |
9547 case "FUNCTION": | 9552 case "FUNCTION": |
9548 return FUNCTION; | 9553 return FUNCTION; |
9549 case "FUNCTION_TYPE_ALIAS": | 9554 case "FUNCTION_TYPE_ALIAS": |
9550 return FUNCTION_TYPE_ALIAS; | 9555 return FUNCTION_TYPE_ALIAS; |
9551 case "GETTER": | 9556 case "GETTER": |
9552 return GETTER; | 9557 return GETTER; |
9553 case "LABEL": | 9558 case "LABEL": |
9554 return LABEL; | 9559 return LABEL; |
9555 case "LIBRARY": | 9560 case "LIBRARY": |
9556 return LIBRARY; | 9561 return LIBRARY; |
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10797 | 10802 |
10798 String _elementKind; | 10803 String _elementKind; |
10799 | 10804 |
10800 String _parameter; | 10805 String _parameter; |
10801 | 10806 |
10802 String _propagatedType; | 10807 String _propagatedType; |
10803 | 10808 |
10804 String _staticType; | 10809 String _staticType; |
10805 | 10810 |
10806 /** | 10811 /** |
10807 * The offset of the range of characters that encompases the cursor position | 10812 * The offset of the range of characters that encompasses the cursor position |
10808 * and has the same hover information as the cursor position. | 10813 * and has the same hover information as the cursor position. |
10809 */ | 10814 */ |
10810 int get offset => _offset; | 10815 int get offset => _offset; |
10811 | 10816 |
10812 /** | 10817 /** |
10813 * The offset of the range of characters that encompases the cursor position | 10818 * The offset of the range of characters that encompasses the cursor position |
10814 * and has the same hover information as the cursor position. | 10819 * and has the same hover information as the cursor position. |
10815 */ | 10820 */ |
10816 void set offset(int value) { | 10821 void set offset(int value) { |
10817 assert(value != null); | 10822 assert(value != null); |
10818 this._offset = value; | 10823 this._offset = value; |
10819 } | 10824 } |
10820 | 10825 |
10821 /** | 10826 /** |
10822 * The length of the range of characters that encompases the cursor position | 10827 * The length of the range of characters that encompasses the cursor position |
10823 * and has the same hover information as the cursor position. | 10828 * and has the same hover information as the cursor position. |
10824 */ | 10829 */ |
10825 int get length => _length; | 10830 int get length => _length; |
10826 | 10831 |
10827 /** | 10832 /** |
10828 * The length of the range of characters that encompases the cursor position | 10833 * The length of the range of characters that encompasses the cursor position |
10829 * and has the same hover information as the cursor position. | 10834 * and has the same hover information as the cursor position. |
10830 */ | 10835 */ |
10831 void set length(int value) { | 10836 void set length(int value) { |
10832 assert(value != null); | 10837 assert(value != null); |
10833 this._length = value; | 10838 this._length = value; |
10834 } | 10839 } |
10835 | 10840 |
10836 /** | 10841 /** |
10837 * The path to the defining compilation unit of the library in which the | 10842 * The path to the defining compilation unit of the library in which the |
10838 * referenced element is declared. This data is omitted if there is no | 10843 * referenced element is declared. This data is omitted if there is no |
(...skipping 2904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13743 * An "analysis.setPriorityFiles" request includes one or more files that are | 13748 * An "analysis.setPriorityFiles" request includes one or more files that are |
13744 * not being analyzed. | 13749 * not being analyzed. |
13745 * | 13750 * |
13746 * This is a legacy error; it will be removed before the API reaches version | 13751 * This is a legacy error; it will be removed before the API reaches version |
13747 * 1.0. | 13752 * 1.0. |
13748 */ | 13753 */ |
13749 static const UNANALYZED_PRIORITY_FILES = const RequestErrorCode._("UNANALYZED_
PRIORITY_FILES"); | 13754 static const UNANALYZED_PRIORITY_FILES = const RequestErrorCode._("UNANALYZED_
PRIORITY_FILES"); |
13750 | 13755 |
13751 /** | 13756 /** |
13752 * A request was received which the analysis server does not recognize, or | 13757 * A request was received which the analysis server does not recognize, or |
13753 * cannot handle in its current configuation. | 13758 * cannot handle in its current configuration. |
13754 */ | 13759 */ |
13755 static const UNKNOWN_REQUEST = const RequestErrorCode._("UNKNOWN_REQUEST"); | 13760 static const UNKNOWN_REQUEST = const RequestErrorCode._("UNKNOWN_REQUEST"); |
13756 | 13761 |
13757 /** | 13762 /** |
13758 * The analysis server was requested to perform an action on a source that | 13763 * The analysis server was requested to perform an action on a source that |
13759 * does not exist. | 13764 * does not exist. |
13760 */ | 13765 */ |
13761 static const UNKNOWN_SOURCE = const RequestErrorCode._("UNKNOWN_SOURCE"); | 13766 static const UNKNOWN_SOURCE = const RequestErrorCode._("UNKNOWN_SOURCE"); |
13762 | 13767 |
13763 /** | 13768 /** |
(...skipping 2655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16419 return false; | 16424 return false; |
16420 } | 16425 } |
16421 | 16426 |
16422 @override | 16427 @override |
16423 int get hashCode { | 16428 int get hashCode { |
16424 int hash = 0; | 16429 int hash = 0; |
16425 hash = JenkinsSmiHash.combine(hash, newName.hashCode); | 16430 hash = JenkinsSmiHash.combine(hash, newName.hashCode); |
16426 return JenkinsSmiHash.finish(hash); | 16431 return JenkinsSmiHash.finish(hash); |
16427 } | 16432 } |
16428 } | 16433 } |
OLD | NEW |