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

Side by Side Diff: pkg/analyzer/tool/summary/idl_model.dart

Issue 1420053011: Introduce code to generate summaries from an element model. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address code review comments. Created 5 years, 1 month 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
« no previous file with comments | « pkg/analyzer/tool/summary/idl.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 5 /**
6 * This file contains a set of concrete classes representing an in-memory 6 * This file contains a set of concrete classes representing an in-memory
7 * semantic model of the IDL used to code generate summary serialization and 7 * semantic model of the IDL used to code generate summary serialization and
8 * deserialization code. 8 * deserialization code.
9 */ 9 */
10 library analyzer.tool.summary.idl_model; 10 library analyzer.tool.summary.idl_model;
11 11
12 /** 12 /**
13 * Information about a single class defined in the IDL. 13 * Information about a single class defined in the IDL.
14 */ 14 */
15 class ClassDeclaration { 15 class ClassDeclaration {
16 /** 16 /**
17 * Fields defined in the class. 17 * Fields defined in the class.
18 */ 18 */
19 final Map<String, FieldType> fields = <String, FieldType>{}; 19 final Map<String, FieldType> fields = <String, FieldType>{};
20
21 /**
22 * Indicates whether the class has the `topLevel` annotation.
23 */
Brian Wilkerson 2015/11/11 21:06:39 Misaligned comment. Needs formatting?
Paul Berry 2015/11/11 21:14:08 Done.
24 final bool isTopLevel;
25
26 ClassDeclaration(this.isTopLevel);
20 } 27 }
21 28
22 /** 29 /**
23 * Information about a single enum defined in the IDL. 30 * Information about a single enum defined in the IDL.
24 */ 31 */
25 class EnumDeclaration { 32 class EnumDeclaration {
26 /** 33 /**
27 * List of enumerated values. 34 * List of enumerated values.
28 */ 35 */
29 final List<String> values = <String>[]; 36 final List<String> values = <String>[];
(...skipping 24 matching lines...) Expand all
54 /** 61 /**
55 * Classes defined in the IDL. 62 * Classes defined in the IDL.
56 */ 63 */
57 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{}; 64 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{};
58 65
59 /** 66 /**
60 * Enums defined in the IDL. 67 * Enums defined in the IDL.
61 */ 68 */
62 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{}; 69 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{};
63 } 70 }
OLDNEW
« no previous file with comments | « pkg/analyzer/tool/summary/idl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698