OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library dart2js.serialization.keys; | 5 library dart2js.serialization.keys; |
6 | 6 |
7 /// Keys used for serialization. | 7 /// Keys used for serialization. |
8 class Key { | 8 class Key { |
9 static const Key ALIAS = const Key('alias'); | 9 static const Key ALIAS = const Key('alias'); |
10 static const Key ARGUMENTS = const Key('arguments'); | 10 static const Key ARGUMENTS = const Key('arguments'); |
(...skipping 27 matching lines...) Expand all Loading... |
38 static const Key GET_OR_SET = const Key('getOrSet'); | 38 static const Key GET_OR_SET = const Key('getOrSet'); |
39 static const Key GETTER = const Key('getter'); | 39 static const Key GETTER = const Key('getter'); |
40 static const Key ID = const Key('id'); | 40 static const Key ID = const Key('id'); |
41 static const Key IMPACTS = const Key('impacts'); | 41 static const Key IMPACTS = const Key('impacts'); |
42 static const Key IMPORT = const Key('import'); | 42 static const Key IMPORT = const Key('import'); |
43 static const Key IMPORTS = const Key('imports'); | 43 static const Key IMPORTS = const Key('imports'); |
44 static const Key IMPORT_SCOPE = const Key('import-scope'); | 44 static const Key IMPORT_SCOPE = const Key('import-scope'); |
45 static const Key INTERFACES = const Key('interfaces'); | 45 static const Key INTERFACES = const Key('interfaces'); |
46 static const Key INDEX = const Key('index'); | 46 static const Key INDEX = const Key('index'); |
47 static const Key IS_ABSTRACT = const Key('isAbstract'); | 47 static const Key IS_ABSTRACT = const Key('isAbstract'); |
| 48 static const Key IS_BREAK_TARGET = const Key('isBreakTarget'); |
48 static const Key IS_CONST = const Key('isConst'); | 49 static const Key IS_CONST = const Key('isConst'); |
| 50 static const Key IS_CONTINUE_TARGET = const Key('isContinueTarget'); |
49 static const Key IS_DEFERRED = const Key('isDeferred'); | 51 static const Key IS_DEFERRED = const Key('isDeferred'); |
50 static const Key IS_EMPTY = const Key('isEmpty'); | 52 static const Key IS_EMPTY = const Key('isEmpty'); |
51 static const Key IS_EXTERNAL = const Key('isExternal'); | 53 static const Key IS_EXTERNAL = const Key('isExternal'); |
52 static const Key IS_FINAL = const Key('isFinal'); | 54 static const Key IS_FINAL = const Key('isFinal'); |
53 static const Key IS_NAMED = const Key('isNamed'); | 55 static const Key IS_NAMED = const Key('isNamed'); |
54 static const Key IS_OPERATOR = const Key('isOperator'); | 56 static const Key IS_OPERATOR = const Key('isOperator'); |
55 static const Key IS_OPTIONAL = const Key('isOptional'); | 57 static const Key IS_OPTIONAL = const Key('isOptional'); |
56 static const Key IS_PROXY = const Key('isProxy'); | 58 static const Key IS_PROXY = const Key('isProxy'); |
57 static const Key IS_SETTER = const Key('isSetter'); | 59 static const Key IS_SETTER = const Key('isSetter'); |
58 static const Key IS_UNNAMED_MIXIN_APPLICATION = | 60 static const Key IS_UNNAMED_MIXIN_APPLICATION = |
59 const Key('isUnnamedMixinApplication'); | 61 const Key('isUnnamedMixinApplication'); |
| 62 static const Key JUMP_TARGET = const Key('jumpTarget'); |
| 63 static const Key JUMP_TARGETS = const Key('jumpTargets'); |
| 64 static const Key JUMP_TARGET_DEFINITION = const Key('jumpTargetDefinition'); |
60 static const Key KEYS = const Key('keys'); | 65 static const Key KEYS = const Key('keys'); |
61 static const Key KIND = const Key('kind'); | 66 static const Key KIND = const Key('kind'); |
| 67 static const Key LABEL_DEFINITION = const Key('labelDefinition'); |
| 68 static const Key LABEL_DEFINITIONS = const Key('labelDefinitions'); |
| 69 static const Key LABELS = const Key('labels'); |
62 static const Key LEFT = const Key('left'); | 70 static const Key LEFT = const Key('left'); |
63 static const Key LENGTH = const Key('length'); | 71 static const Key LENGTH = const Key('length'); |
64 static const Key LIBRARY = const Key('library'); | 72 static const Key LIBRARY = const Key('library'); |
65 static const Key LIBRARY_DEPENDENCY = const Key('library-dependency'); | 73 static const Key LIBRARY_DEPENDENCY = const Key('library-dependency'); |
66 static const Key LIBRARY_NAME = const Key('library-name'); | 74 static const Key LIBRARY_NAME = const Key('library-name'); |
67 static const Key LISTS = const Key('lists'); | 75 static const Key LISTS = const Key('lists'); |
68 static const Key MAPS = const Key('maps'); | 76 static const Key MAPS = const Key('maps'); |
69 static const Key MEMBERS = const Key('members'); | 77 static const Key MEMBERS = const Key('members'); |
70 static const Key MIXIN = const Key('mixin'); | 78 static const Key MIXIN = const Key('mixin'); |
71 static const Key MIXINS = const Key('mixins'); | 79 static const Key MIXINS = const Key('mixins'); |
72 static const Key NAME = const Key('name'); | 80 static const Key NAME = const Key('name'); |
73 static const Key NAMES = const Key('names'); | 81 static const Key NAMES = const Key('names'); |
74 static const Key NAMED_ARGUMENTS = const Key('named-arguments'); | 82 static const Key NAMED_ARGUMENTS = const Key('named-arguments'); |
75 static const Key NAMED_PARAMETERS = const Key('named-parameters'); | 83 static const Key NAMED_PARAMETERS = const Key('named-parameters'); |
76 static const Key NAMED_PARAMETER_TYPES = const Key('named-parameter-types'); | 84 static const Key NAMED_PARAMETER_TYPES = const Key('named-parameter-types'); |
| 85 static const Key NESTING_LEVEL = const Key('nestingLevel'); |
77 static const Key NEW_STRUCTURE = const Key('newStructure'); | 86 static const Key NEW_STRUCTURE = const Key('newStructure'); |
| 87 static const Key NODE = const Key('node'); |
78 static const Key OFFSET = const Key('offset'); | 88 static const Key OFFSET = const Key('offset'); |
79 static const Key OPERATOR = const Key('operator'); | 89 static const Key OPERATOR = const Key('operator'); |
80 static const Key OPTIONAL_PARAMETER_TYPES = | 90 static const Key OPTIONAL_PARAMETER_TYPES = |
81 const Key('optional-parameter-types'); | 91 const Key('optional-parameter-types'); |
82 static const Key PARAMETERS = const Key('parameters'); | 92 static const Key PARAMETERS = const Key('parameters'); |
83 static const Key PARAMETER_TYPES = const Key('parameter-types'); | 93 static const Key PARAMETER_TYPES = const Key('parameter-types'); |
84 static const Key PREFIX = const Key('prefix'); | 94 static const Key PREFIX = const Key('prefix'); |
85 static const Key RETURN_TYPE = const Key('return-type'); | 95 static const Key RETURN_TYPE = const Key('return-type'); |
86 static const Key RIGHT = const Key('right'); | 96 static const Key RIGHT = const Key('right'); |
87 static const Key SELECTOR = const Key('selector'); | 97 static const Key SELECTOR = const Key('selector'); |
88 static const Key SEMANTICS = const Key('semantics'); | 98 static const Key SEMANTICS = const Key('semantics'); |
89 static const Key SEND_STRUCTURE = const Key('sendStructure'); | 99 static const Key SEND_STRUCTURE = const Key('sendStructure'); |
90 static const Key SETTER = const Key('setter'); | 100 static const Key SETTER = const Key('setter'); |
91 static const Key STATIC_USES = const Key('static-uses'); | 101 static const Key STATIC_USES = const Key('static-uses'); |
92 static const Key SUB_KIND = const Key('subKind'); | 102 static const Key SUB_KIND = const Key('subKind'); |
93 static const Key SUPERTYPE = const Key('supertype'); | 103 static const Key SUPERTYPE = const Key('supertype'); |
94 static const Key SUPERTYPES = const Key('supertypes'); | 104 static const Key SUPERTYPES = const Key('supertypes'); |
95 static const Key SYMBOLS = const Key('symbols'); | 105 static const Key SYMBOLS = const Key('symbols'); |
96 static const Key TAGS = const Key('tags'); | 106 static const Key TAGS = const Key('tags'); |
| 107 static const Key TARGET_LABEL = const Key('targetLabel'); |
97 static const Key TRUE = const Key('true'); | 108 static const Key TRUE = const Key('true'); |
98 static const Key TYPE = const Key('type'); | 109 static const Key TYPE = const Key('type'); |
99 static const Key TYPES = const Key('types'); | 110 static const Key TYPES = const Key('types'); |
100 static const Key TYPE_ARGUMENTS = const Key('type-arguments'); | 111 static const Key TYPE_ARGUMENTS = const Key('type-arguments'); |
101 static const Key TYPE_DECLARATION = const Key('type-declaration'); | 112 static const Key TYPE_DECLARATION = const Key('type-declaration'); |
102 static const Key TYPE_USES = const Key('type-uses'); | 113 static const Key TYPE_USES = const Key('type-uses'); |
103 static const Key TYPE_VARIABLES = const Key('type-variables'); | 114 static const Key TYPE_VARIABLES = const Key('type-variables'); |
104 static const Key URI = const Key('uri'); | 115 static const Key URI = const Key('uri'); |
105 static const Key VALUE = const Key('value'); | 116 static const Key VALUE = const Key('value'); |
106 static const Key VALUES = const Key('values'); | 117 static const Key VALUES = const Key('values'); |
107 | 118 |
108 final String name; | 119 final String name; |
109 | 120 |
110 const Key(this.name); | 121 const Key(this.name); |
111 | 122 |
112 String toString() => name; | 123 String toString() => name; |
113 } | 124 } |
OLD | NEW |