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

Side by Side Diff: pkg/compiler/lib/src/serialization/keys.dart

Issue 1335983004: Add ImportElement and ExportElement (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 3 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
OLDNEW
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 DEFAULT = const Key('default'); 21 static const Key DEFAULT = const Key('default');
22 static const Key DEFAULTS = const Key('defaults'); 22 static const Key DEFAULTS = const Key('defaults');
23 static const Key ELEMENT = const Key('element'); 23 static const Key ELEMENT = const Key('element');
24 static const Key ELEMENTS = const Key('elements'); 24 static const Key ELEMENTS = const Key('elements');
25 static const Key EXPORTS = const Key('exports'); 25 static const Key EXPORTS = const Key('exports');
26 static const Key EXPORT_SCOPE = const Key('export-scope');
26 static const Key EXPRESSION = const Key('expression'); 27 static const Key EXPRESSION = const Key('expression');
27 static const Key FALSE = const Key('false'); 28 static const Key FALSE = const Key('false');
28 static const Key FIELD = const Key('field'); 29 static const Key FIELD = const Key('field');
29 static const Key FIELDS = const Key('fields'); 30 static const Key FIELDS = const Key('fields');
30 static const Key FUNCTION = const Key('function'); 31 static const Key FUNCTION = const Key('function');
31 static const Key ID = const Key('id'); 32 static const Key ID = const Key('id');
33 static const Key IMPORT = const Key('import');
32 static const Key IMPORTS = const Key('imports'); 34 static const Key IMPORTS = const Key('imports');
35 static const Key IMPORT_SCOPE = const Key('import-scope');
33 static const Key INTERFACES = const Key('interfaces'); 36 static const Key INTERFACES = const Key('interfaces');
34 static const Key INDEX = const Key('index'); 37 static const Key INDEX = const Key('index');
35 static const Key IS_ABSTRACT = const Key('isAbstract'); 38 static const Key IS_ABSTRACT = const Key('isAbstract');
36 static const Key IS_CONST = const Key('isConst'); 39 static const Key IS_CONST = const Key('isConst');
40 static const Key IS_DEFERRED = const Key('isDeferred');
37 static const Key IS_EXTERNAL = const Key('isExternal'); 41 static const Key IS_EXTERNAL = const Key('isExternal');
38 static const Key IS_FINAL = const Key('isFinal'); 42 static const Key IS_FINAL = const Key('isFinal');
39 static const Key IS_NAMED = const Key('isNamed'); 43 static const Key IS_NAMED = const Key('isNamed');
40 static const Key IS_OPERATOR = const Key('isOperator'); 44 static const Key IS_OPERATOR = const Key('isOperator');
41 static const Key IS_OPTIONAL = const Key('isOptional'); 45 static const Key IS_OPTIONAL = const Key('isOptional');
42 static const Key KEYS = const Key('keys'); 46 static const Key KEYS = const Key('keys');
43 static const Key KIND = const Key('kind'); 47 static const Key KIND = const Key('kind');
44 static const Key LEFT = const Key('left'); 48 static const Key LEFT = const Key('left');
45 static const Key LENGTH = const Key('length'); 49 static const Key LENGTH = const Key('length');
46 static const Key LIBRARY = const Key('library'); 50 static const Key LIBRARY = const Key('library');
51 static const Key LIBRARY_DEPENDENCY = const Key('library-dependency');
47 static const Key LIBRARY_NAME = const Key('library-name'); 52 static const Key LIBRARY_NAME = const Key('library-name');
48 static const Key MEMBERS = const Key('members'); 53 static const Key MEMBERS = const Key('members');
49 static const Key NAME = const Key('name'); 54 static const Key NAME = const Key('name');
50 static const Key NAMES = const Key('names'); 55 static const Key NAMES = const Key('names');
51 static const Key NAMED_PARAMETERS = const Key('named-parameters'); 56 static const Key NAMED_PARAMETERS = const Key('named-parameters');
52 static const Key NAMED_PARAMETER_TYPES = const Key('named-parameter-types'); 57 static const Key NAMED_PARAMETER_TYPES = const Key('named-parameter-types');
53 static const Key OFFSET = const Key('offset'); 58 static const Key OFFSET = const Key('offset');
54 static const Key OFFSETS = const Key('offsets'); 59 static const Key OFFSETS = const Key('offsets');
55 static const Key OPERATOR = const Key('operator'); 60 static const Key OPERATOR = const Key('operator');
56 static const Key OPTIONAL_PARAMETER_TYPES = 61 static const Key OPTIONAL_PARAMETER_TYPES =
57 const Key('optional-parameter-types'); 62 const Key('optional-parameter-types');
58 static const Key PARAMETERS = const Key('parameters'); 63 static const Key PARAMETERS = const Key('parameters');
59 static const Key PARAMETER_TYPES = const Key('parameter-types'); 64 static const Key PARAMETER_TYPES = const Key('parameter-types');
65 static const Key PREFIX = const Key('prefix');
60 static const Key RETURN_TYPE = const Key('return-type'); 66 static const Key RETURN_TYPE = const Key('return-type');
61 static const Key RIGHT = const Key('right'); 67 static const Key RIGHT = const Key('right');
62 static const Key SUPERTYPE = const Key('supertype'); 68 static const Key SUPERTYPE = const Key('supertype');
63 static const Key SUPERTYPES = const Key('supertypes'); 69 static const Key SUPERTYPES = const Key('supertypes');
64 static const Key TAGS = const Key('tags'); 70 static const Key TAGS = const Key('tags');
65 static const Key TRUE = const Key('true'); 71 static const Key TRUE = const Key('true');
66 static const Key TYPE = const Key('type'); 72 static const Key TYPE = const Key('type');
67 static const Key TYPES = const Key('types'); 73 static const Key TYPES = const Key('types');
68 static const Key TYPE_ARGUMENTS = const Key('type-arguments'); 74 static const Key TYPE_ARGUMENTS = const Key('type-arguments');
69 static const Key TYPE_DECLARATION = const Key('type-declaration'); 75 static const Key TYPE_DECLARATION = const Key('type-declaration');
70 static const Key TYPE_VARIABLES = const Key('type-variables'); 76 static const Key TYPE_VARIABLES = const Key('type-variables');
71 static const Key URI = const Key('uri'); 77 static const Key URI = const Key('uri');
72 static const Key VALUE = const Key('value'); 78 static const Key VALUE = const Key('value');
73 static const Key VALUES = const Key('values'); 79 static const Key VALUES = const Key('values');
74 80
75 final String name; 81 final String name;
76 82
77 const Key(this.name); 83 const Key(this.name);
78 84
79 String toString() => name; 85 String toString() => name;
80 } 86 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/serialization/element_serialization.dart ('k') | pkg/compiler/lib/src/serialization/modelz.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698