| 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'); |
| 11 static const Key BOUND = const Key('bound'); | 11 static const Key BOUND = const Key('bound'); |
| 12 static const Key CALL_STRUCTURE = const Key('callStructure'); | 12 static const Key CALL_STRUCTURE = const Key('callStructure'); |
| 13 static const Key CANONICAL_URI = const Key('canonicalUri'); | 13 static const Key CANONICAL_URI = const Key('canonicalUri'); |
| 14 static const Key CLASS = const Key('class'); | 14 static const Key CLASS = const Key('class'); |
| 15 static const Key COMPILATION_UNIT = const Key('compilation-unit'); | 15 static const Key COMPILATION_UNIT = const Key('compilation-unit'); |
| 16 static const Key COMPILATION_UNITS = const Key('compilation-units'); | 16 static const Key COMPILATION_UNITS = const Key('compilation-units'); |
| 17 static const Key CONDITION = const Key('condition'); | 17 static const Key CONDITION = const Key('condition'); |
| 18 static const Key CONSTANT = const Key('constant'); | 18 static const Key CONSTANT = const Key('constant'); |
| 19 static const Key CONSTANTS = const Key('constants'); | 19 static const Key CONSTANTS = const Key('constants'); |
| 20 static const Key CONSTRUCTOR = const Key('constructor'); | 20 static const Key CONSTRUCTOR = const Key('constructor'); |
| 21 static const Key DATA = const Key('data'); |
| 21 static const Key DEFAULT = const Key('default'); | 22 static const Key DEFAULT = const Key('default'); |
| 22 static const Key DEFAULTS = const Key('defaults'); | 23 static const Key DEFAULTS = const Key('defaults'); |
| 24 static const Key DYNAMIC_USES = const Key('dynamic-uses'); |
| 23 static const Key ELEMENT = const Key('element'); | 25 static const Key ELEMENT = const Key('element'); |
| 24 static const Key ELEMENTS = const Key('elements'); | 26 static const Key ELEMENTS = const Key('elements'); |
| 27 static const Key EXECUTABLE_CONTEXT = const Key('executable-context'); |
| 25 static const Key EXPORTS = const Key('exports'); | 28 static const Key EXPORTS = const Key('exports'); |
| 26 static const Key EXPORT_SCOPE = const Key('export-scope'); | 29 static const Key EXPORT_SCOPE = const Key('export-scope'); |
| 27 static const Key EXPRESSION = const Key('expression'); | 30 static const Key EXPRESSION = const Key('expression'); |
| 28 static const Key FALSE = const Key('false'); | 31 static const Key FALSE = const Key('false'); |
| 29 static const Key FIELD = const Key('field'); | 32 static const Key FIELD = const Key('field'); |
| 30 static const Key FIELDS = const Key('fields'); | 33 static const Key FIELDS = const Key('fields'); |
| 31 static const Key FUNCTION = const Key('function'); | 34 static const Key FUNCTION = const Key('function'); |
| 32 static const Key ID = const Key('id'); | 35 static const Key ID = const Key('id'); |
| 36 static const Key IMPACTS = const Key('impacts'); |
| 33 static const Key IMPORT = const Key('import'); | 37 static const Key IMPORT = const Key('import'); |
| 34 static const Key IMPORTS = const Key('imports'); | 38 static const Key IMPORTS = const Key('imports'); |
| 35 static const Key IMPORT_SCOPE = const Key('import-scope'); | 39 static const Key IMPORT_SCOPE = const Key('import-scope'); |
| 36 static const Key INTERFACES = const Key('interfaces'); | 40 static const Key INTERFACES = const Key('interfaces'); |
| 37 static const Key INDEX = const Key('index'); | 41 static const Key INDEX = const Key('index'); |
| 38 static const Key IS_ABSTRACT = const Key('isAbstract'); | 42 static const Key IS_ABSTRACT = const Key('isAbstract'); |
| 39 static const Key IS_CONST = const Key('isConst'); | 43 static const Key IS_CONST = const Key('isConst'); |
| 40 static const Key IS_DEFERRED = const Key('isDeferred'); | 44 static const Key IS_DEFERRED = const Key('isDeferred'); |
| 41 static const Key IS_EXTERNAL = const Key('isExternal'); | 45 static const Key IS_EXTERNAL = const Key('isExternal'); |
| 42 static const Key IS_FINAL = const Key('isFinal'); | 46 static const Key IS_FINAL = const Key('isFinal'); |
| 43 static const Key IS_NAMED = const Key('isNamed'); | 47 static const Key IS_NAMED = const Key('isNamed'); |
| 44 static const Key IS_OPERATOR = const Key('isOperator'); | 48 static const Key IS_OPERATOR = const Key('isOperator'); |
| 45 static const Key IS_OPTIONAL = const Key('isOptional'); | 49 static const Key IS_OPTIONAL = const Key('isOptional'); |
| 50 static const Key IS_PROXY = const Key('isProxy'); |
| 51 static const Key IS_SETTER = const Key('isSetter'); |
| 46 static const Key IS_UNNAMED_MIXIN_APPLICATION = | 52 static const Key IS_UNNAMED_MIXIN_APPLICATION = |
| 47 const Key('isUnnamedMixinApplication'); | 53 const Key('isUnnamedMixinApplication'); |
| 48 static const Key KEYS = const Key('keys'); | 54 static const Key KEYS = const Key('keys'); |
| 49 static const Key KIND = const Key('kind'); | 55 static const Key KIND = const Key('kind'); |
| 50 static const Key LEFT = const Key('left'); | 56 static const Key LEFT = const Key('left'); |
| 51 static const Key LENGTH = const Key('length'); | 57 static const Key LENGTH = const Key('length'); |
| 52 static const Key LIBRARY = const Key('library'); | 58 static const Key LIBRARY = const Key('library'); |
| 53 static const Key LIBRARY_DEPENDENCY = const Key('library-dependency'); | 59 static const Key LIBRARY_DEPENDENCY = const Key('library-dependency'); |
| 54 static const Key LIBRARY_NAME = const Key('library-name'); | 60 static const Key LIBRARY_NAME = const Key('library-name'); |
| 55 static const Key MEMBERS = const Key('members'); | 61 static const Key MEMBERS = const Key('members'); |
| 56 static const Key NAME = const Key('name'); | 62 static const Key NAME = const Key('name'); |
| 57 static const Key NAMES = const Key('names'); | 63 static const Key NAMES = const Key('names'); |
| 64 static const Key NAMED_ARGUMENTS = const Key('named-arguments'); |
| 58 static const Key NAMED_PARAMETERS = const Key('named-parameters'); | 65 static const Key NAMED_PARAMETERS = const Key('named-parameters'); |
| 59 static const Key NAMED_PARAMETER_TYPES = const Key('named-parameter-types'); | 66 static const Key NAMED_PARAMETER_TYPES = const Key('named-parameter-types'); |
| 60 static const Key OFFSET = const Key('offset'); | 67 static const Key OFFSET = const Key('offset'); |
| 61 static const Key OFFSETS = const Key('offsets'); | 68 static const Key OFFSETS = const Key('offsets'); |
| 62 static const Key OPERATOR = const Key('operator'); | 69 static const Key OPERATOR = const Key('operator'); |
| 63 static const Key OPTIONAL_PARAMETER_TYPES = | 70 static const Key OPTIONAL_PARAMETER_TYPES = |
| 64 const Key('optional-parameter-types'); | 71 const Key('optional-parameter-types'); |
| 65 static const Key PARAMETERS = const Key('parameters'); | 72 static const Key PARAMETERS = const Key('parameters'); |
| 66 static const Key PARAMETER_TYPES = const Key('parameter-types'); | 73 static const Key PARAMETER_TYPES = const Key('parameter-types'); |
| 67 static const Key PREFIX = const Key('prefix'); | 74 static const Key PREFIX = const Key('prefix'); |
| 68 static const Key RETURN_TYPE = const Key('return-type'); | 75 static const Key RETURN_TYPE = const Key('return-type'); |
| 69 static const Key RIGHT = const Key('right'); | 76 static const Key RIGHT = const Key('right'); |
| 77 static const Key STATIC_USES = const Key('static-uses'); |
| 70 static const Key SUPERTYPE = const Key('supertype'); | 78 static const Key SUPERTYPE = const Key('supertype'); |
| 71 static const Key SUPERTYPES = const Key('supertypes'); | 79 static const Key SUPERTYPES = const Key('supertypes'); |
| 72 static const Key TAGS = const Key('tags'); | 80 static const Key TAGS = const Key('tags'); |
| 73 static const Key TRUE = const Key('true'); | 81 static const Key TRUE = const Key('true'); |
| 74 static const Key TYPE = const Key('type'); | 82 static const Key TYPE = const Key('type'); |
| 75 static const Key TYPES = const Key('types'); | 83 static const Key TYPES = const Key('types'); |
| 76 static const Key TYPE_ARGUMENTS = const Key('type-arguments'); | 84 static const Key TYPE_ARGUMENTS = const Key('type-arguments'); |
| 77 static const Key TYPE_DECLARATION = const Key('type-declaration'); | 85 static const Key TYPE_DECLARATION = const Key('type-declaration'); |
| 86 static const Key TYPE_USES = const Key('type-uses'); |
| 78 static const Key TYPE_VARIABLES = const Key('type-variables'); | 87 static const Key TYPE_VARIABLES = const Key('type-variables'); |
| 79 static const Key URI = const Key('uri'); | 88 static const Key URI = const Key('uri'); |
| 80 static const Key VALUE = const Key('value'); | 89 static const Key VALUE = const Key('value'); |
| 81 static const Key VALUES = const Key('values'); | 90 static const Key VALUES = const Key('values'); |
| 82 | 91 |
| 83 final String name; | 92 final String name; |
| 84 | 93 |
| 85 const Key(this.name); | 94 const Key(this.name); |
| 86 | 95 |
| 87 String toString() => name; | 96 String toString() => name; |
| 88 } | 97 } |
| OLD | NEW |