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

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

Issue 1192103002: Support serialization of the compiler backbone. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Handle (bypass) external const constructors. Created 5 years, 5 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 library dart2js.serialization.keys;
6
7 /// Keys used for serialization.
8 class Key {
9 static const Key ALIAS = const Key('alias');
10 static const Key ARGUMENTS = const Key('arguments');
11 static const Key BOUND = const Key('bound');
12 static const Key CALL_STRUCTURE = const Key('callStructure');
13 static const Key CANONICAL_URI = const Key('canonicalUri');
14 static const Key CLASS = const Key('class');
15 static const Key COMPILATION_UNIT = const Key('compilation-unit');
16 static const Key COMPILATION_UNITS = const Key('compilation-units');
17 static const Key CONDITION = const Key('condition');
18 static const Key CONSTANT = const Key('constant');
19 static const Key CONSTANTS = const Key('constants');
20 static const Key CONSTRUCTOR = const Key('constructor');
21 static const Key DEFAULT = const Key('default');
22 static const Key DEFAULTS = const Key('defaults');
23 static const Key ELEMENT = const Key('element');
24 static const Key ELEMENTS = const Key('elements');
25 static const Key EXPORTS = const Key('exports');
26 static const Key EXPRESSION = const Key('expression');
27 static const Key FALSE = const Key('false');
28 static const Key FIELD = const Key('field');
29 static const Key FIELDS = const Key('fields');
30 static const Key FUNCTION = const Key('function');
31 static const Key ID = const Key('id');
32 static const Key IMPORTS = const Key('imports');
33 static const Key INTERFACES = const Key('interfaces');
34 static const Key INDEX = const Key('index');
35 static const Key IS_ABSTRACT = const Key('isAbstract');
36 static const Key IS_CONST = const Key('isConst');
37 static const Key IS_EXTERNAL = const Key('isExternal');
38 static const Key IS_FINAL = const Key('isFinal');
39 static const Key IS_NAMED = const Key('isNamed');
40 static const Key IS_OPERATOR = const Key('isOperator');
41 static const Key IS_OPTIONAL = const Key('isOptional');
42 static const Key KEYS = const Key('keys');
43 static const Key KIND = const Key('kind');
44 static const Key LEFT = const Key('left');
45 static const Key LENGTH = const Key('length');
46 static const Key LIBRARY = const Key('library');
47 static const Key LIBRARY_NAME = const Key('library-name');
48 static const Key MEMBERS = const Key('members');
49 static const Key NAME = const Key('name');
50 static const Key NAMES = const Key('names');
51 static const Key NAMED_PARAMETERS = const Key('named-parameters');
52 static const Key NAMED_PARAMETER_TYPES = const Key('named-parameter-types');
53 static const Key OFFSET = const Key('offset');
54 static const Key OFFSETS = const Key('offsets');
55 static const Key OPERATOR = const Key('operator');
56 static const Key OPTIONAL_PARAMETER_TYPES =
57 const Key('optional-parameter-types');
58 static const Key PARAMETERS = const Key('parameters');
59 static const Key PARAMETER_TYPES = const Key('parameter-types');
60 static const Key RETURN_TYPE = const Key('return-type');
61 static const Key RIGHT = const Key('right');
62 static const Key SUPERTYPE = const Key('supertype');
63 static const Key SUPERTYPES = const Key('supertypes');
64 static const Key TAGS = const Key('tags');
65 static const Key TRUE = const Key('true');
66 static const Key TYPE = const Key('type');
67 static const Key TYPES = const Key('types');
68 static const Key TYPE_ARGUMENTS = const Key('type-arguments');
69 static const Key TYPE_DECLARATION = const Key('type-declaration');
70 static const Key TYPE_VARIABLES = const Key('type-variables');
71 static const Key URI = const Key('uri');
72 static const Key VALUE = const Key('value');
73 static const Key VALUES = const Key('values');
74
75 final String name;
76
77 const Key(this.name);
78
79 String toString() => name;
80 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/serialization/json_serializer.dart ('k') | pkg/compiler/lib/src/serialization/modelz.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698