| 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 11 matching lines...) Expand all Loading... |
| 22 static const Key DEFAULT = const Key('default'); | 22 static const Key DEFAULT = const Key('default'); |
| 23 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'); | 24 static const Key DYNAMIC_USES = const Key('dynamic-uses'); |
| 25 static const Key ELEMENT = const Key('element'); | 25 static const Key ELEMENT = const Key('element'); |
| 26 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'); | 27 static const Key EXECUTABLE_CONTEXT = const Key('executable-context'); |
| 28 static const Key EXPORTS = const Key('exports'); | 28 static const Key EXPORTS = const Key('exports'); |
| 29 static const Key EXPORT_SCOPE = const Key('export-scope'); | 29 static const Key EXPORT_SCOPE = const Key('export-scope'); |
| 30 static const Key EXPRESSION = const Key('expression'); | 30 static const Key EXPRESSION = const Key('expression'); |
| 31 static const Key FALSE = const Key('false'); | 31 static const Key FALSE = const Key('false'); |
| 32 static const Key FEATURES = const Key('features'); |
| 32 static const Key FIELD = const Key('field'); | 33 static const Key FIELD = const Key('field'); |
| 33 static const Key FIELDS = const Key('fields'); | 34 static const Key FIELDS = const Key('fields'); |
| 34 static const Key FUNCTION = const Key('function'); | 35 static const Key FUNCTION = const Key('function'); |
| 35 static const Key ID = const Key('id'); | 36 static const Key ID = const Key('id'); |
| 36 static const Key IMPACTS = const Key('impacts'); | 37 static const Key IMPACTS = const Key('impacts'); |
| 37 static const Key IMPORT = const Key('import'); | 38 static const Key IMPORT = const Key('import'); |
| 38 static const Key IMPORTS = const Key('imports'); | 39 static const Key IMPORTS = const Key('imports'); |
| 39 static const Key IMPORT_SCOPE = const Key('import-scope'); | 40 static const Key IMPORT_SCOPE = const Key('import-scope'); |
| 40 static const Key INTERFACES = const Key('interfaces'); | 41 static const Key INTERFACES = const Key('interfaces'); |
| 41 static const Key INDEX = const Key('index'); | 42 static const Key INDEX = const Key('index'); |
| 42 static const Key IS_ABSTRACT = const Key('isAbstract'); | 43 static const Key IS_ABSTRACT = const Key('isAbstract'); |
| 43 static const Key IS_CONST = const Key('isConst'); | 44 static const Key IS_CONST = const Key('isConst'); |
| 44 static const Key IS_DEFERRED = const Key('isDeferred'); | 45 static const Key IS_DEFERRED = const Key('isDeferred'); |
| 46 static const Key IS_EMPTY = const Key('isEmpty'); |
| 45 static const Key IS_EXTERNAL = const Key('isExternal'); | 47 static const Key IS_EXTERNAL = const Key('isExternal'); |
| 46 static const Key IS_FINAL = const Key('isFinal'); | 48 static const Key IS_FINAL = const Key('isFinal'); |
| 47 static const Key IS_NAMED = const Key('isNamed'); | 49 static const Key IS_NAMED = const Key('isNamed'); |
| 48 static const Key IS_OPERATOR = const Key('isOperator'); | 50 static const Key IS_OPERATOR = const Key('isOperator'); |
| 49 static const Key IS_OPTIONAL = const Key('isOptional'); | 51 static const Key IS_OPTIONAL = const Key('isOptional'); |
| 50 static const Key IS_PROXY = const Key('isProxy'); | 52 static const Key IS_PROXY = const Key('isProxy'); |
| 51 static const Key IS_SETTER = const Key('isSetter'); | 53 static const Key IS_SETTER = const Key('isSetter'); |
| 52 static const Key IS_UNNAMED_MIXIN_APPLICATION = | 54 static const Key IS_UNNAMED_MIXIN_APPLICATION = |
| 53 const Key('isUnnamedMixinApplication'); | 55 const Key('isUnnamedMixinApplication'); |
| 54 static const Key KEYS = const Key('keys'); | 56 static const Key KEYS = const Key('keys'); |
| 55 static const Key KIND = const Key('kind'); | 57 static const Key KIND = const Key('kind'); |
| 56 static const Key LEFT = const Key('left'); | 58 static const Key LEFT = const Key('left'); |
| 57 static const Key LENGTH = const Key('length'); | 59 static const Key LENGTH = const Key('length'); |
| 58 static const Key LIBRARY = const Key('library'); | 60 static const Key LIBRARY = const Key('library'); |
| 59 static const Key LIBRARY_DEPENDENCY = const Key('library-dependency'); | 61 static const Key LIBRARY_DEPENDENCY = const Key('library-dependency'); |
| 60 static const Key LIBRARY_NAME = const Key('library-name'); | 62 static const Key LIBRARY_NAME = const Key('library-name'); |
| 63 static const Key LISTS = const Key('lists'); |
| 64 static const Key MAPS = const Key('maps'); |
| 61 static const Key MEMBERS = const Key('members'); | 65 static const Key MEMBERS = const Key('members'); |
| 62 static const Key MIXIN = const Key('mixin'); | 66 static const Key MIXIN = const Key('mixin'); |
| 63 static const Key MIXINS = const Key('mixins'); | 67 static const Key MIXINS = const Key('mixins'); |
| 64 static const Key NAME = const Key('name'); | 68 static const Key NAME = const Key('name'); |
| 65 static const Key NAMES = const Key('names'); | 69 static const Key NAMES = const Key('names'); |
| 66 static const Key NAMED_ARGUMENTS = const Key('named-arguments'); | 70 static const Key NAMED_ARGUMENTS = const Key('named-arguments'); |
| 67 static const Key NAMED_PARAMETERS = const Key('named-parameters'); | 71 static const Key NAMED_PARAMETERS = const Key('named-parameters'); |
| 68 static const Key NAMED_PARAMETER_TYPES = const Key('named-parameter-types'); | 72 static const Key NAMED_PARAMETER_TYPES = const Key('named-parameter-types'); |
| 69 static const Key OFFSET = const Key('offset'); | 73 static const Key OFFSET = const Key('offset'); |
| 70 static const Key OPERATOR = const Key('operator'); | 74 static const Key OPERATOR = const Key('operator'); |
| 71 static const Key OPTIONAL_PARAMETER_TYPES = | 75 static const Key OPTIONAL_PARAMETER_TYPES = |
| 72 const Key('optional-parameter-types'); | 76 const Key('optional-parameter-types'); |
| 73 static const Key PARAMETERS = const Key('parameters'); | 77 static const Key PARAMETERS = const Key('parameters'); |
| 74 static const Key PARAMETER_TYPES = const Key('parameter-types'); | 78 static const Key PARAMETER_TYPES = const Key('parameter-types'); |
| 75 static const Key PREFIX = const Key('prefix'); | 79 static const Key PREFIX = const Key('prefix'); |
| 76 static const Key RETURN_TYPE = const Key('return-type'); | 80 static const Key RETURN_TYPE = const Key('return-type'); |
| 77 static const Key RIGHT = const Key('right'); | 81 static const Key RIGHT = const Key('right'); |
| 78 static const Key STATIC_USES = const Key('static-uses'); | 82 static const Key STATIC_USES = const Key('static-uses'); |
| 79 static const Key SUPERTYPE = const Key('supertype'); | 83 static const Key SUPERTYPE = const Key('supertype'); |
| 80 static const Key SUPERTYPES = const Key('supertypes'); | 84 static const Key SUPERTYPES = const Key('supertypes'); |
| 85 static const Key SYMBOLS = const Key('symbols'); |
| 81 static const Key TAGS = const Key('tags'); | 86 static const Key TAGS = const Key('tags'); |
| 82 static const Key TRUE = const Key('true'); | 87 static const Key TRUE = const Key('true'); |
| 83 static const Key TYPE = const Key('type'); | 88 static const Key TYPE = const Key('type'); |
| 84 static const Key TYPES = const Key('types'); | 89 static const Key TYPES = const Key('types'); |
| 85 static const Key TYPE_ARGUMENTS = const Key('type-arguments'); | 90 static const Key TYPE_ARGUMENTS = const Key('type-arguments'); |
| 86 static const Key TYPE_DECLARATION = const Key('type-declaration'); | 91 static const Key TYPE_DECLARATION = const Key('type-declaration'); |
| 87 static const Key TYPE_USES = const Key('type-uses'); | 92 static const Key TYPE_USES = const Key('type-uses'); |
| 88 static const Key TYPE_VARIABLES = const Key('type-variables'); | 93 static const Key TYPE_VARIABLES = const Key('type-variables'); |
| 89 static const Key URI = const Key('uri'); | 94 static const Key URI = const Key('uri'); |
| 90 static const Key VALUE = const Key('value'); | 95 static const Key VALUE = const Key('value'); |
| 91 static const Key VALUES = const Key('values'); | 96 static const Key VALUES = const Key('values'); |
| 92 | 97 |
| 93 final String name; | 98 final String name; |
| 94 | 99 |
| 95 const Key(this.name); | 100 const Key(this.name); |
| 96 | 101 |
| 97 String toString() => name; | 102 String toString() => name; |
| 98 } | 103 } |
| OLD | NEW |