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

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

Issue 1738833004: Add file identifiers to summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « pkg/analyzer/tool/summary/generate.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 extends Declaration { 15 class ClassDeclaration extends Declaration {
16 /** 16 /**
17 * Fields defined in the class. 17 * Fields defined in the class.
18 */ 18 */
19 final List<FieldDeclaration> fields = <FieldDeclaration>[]; 19 final List<FieldDeclaration> fields = <FieldDeclaration>[];
20 20
21 /** 21 /**
22 * Indicates whether the class has the `topLevel` annotation. 22 * Indicates whether the class has the `topLevel` annotation.
23 */ 23 */
24 final bool isTopLevel; 24 final bool isTopLevel;
25 25
26 ClassDeclaration(String documentation, String name, this.isTopLevel) 26 /**
27 * If [isTopLevel] is `true` and a file identifier was specified for this
28 * class, the file identifier string. Otheswise `null`.
29 */
30 final String fileIdentifier;
31
32 ClassDeclaration(
33 String documentation, String name, this.isTopLevel, this.fileIdentifier)
27 : super(documentation, name); 34 : super(documentation, name);
28 } 35 }
29 36
30 /** 37 /**
31 * Information about a declaration in the IDL. 38 * Information about a declaration in the IDL.
32 */ 39 */
33 class Declaration { 40 class Declaration {
34 /** 41 /**
35 * The optional documentation, may be `null`. 42 * The optional documentation, may be `null`.
36 */ 43 */
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 /** 115 /**
109 * Classes defined in the IDL. 116 * Classes defined in the IDL.
110 */ 117 */
111 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{}; 118 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{};
112 119
113 /** 120 /**
114 * Enums defined in the IDL. 121 * Enums defined in the IDL.
115 */ 122 */
116 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{}; 123 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{};
117 } 124 }
OLDNEW
« no previous file with comments | « pkg/analyzer/tool/summary/generate.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698