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

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

Issue 2216873003: Add an "api signature" to summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 /** 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;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 */ 116 */
117 final String typeName; 117 final String typeName;
118 118
119 /** 119 /**
120 * Indicates whether this field contains a list of the type specified in 120 * Indicates whether this field contains a list of the type specified in
121 * [typeName]. 121 * [typeName].
122 */ 122 */
123 final bool isList; 123 final bool isList;
124 124
125 FieldType(this.typeName, this.isList); 125 FieldType(this.typeName, this.isList);
126
127 @override
128 String toString() => isList ? 'List<$typeName>' : typeName;
126 } 129 }
127 130
128 /** 131 /**
129 * Top level representation of the summary IDL. 132 * Top level representation of the summary IDL.
130 */ 133 */
131 class Idl { 134 class Idl {
132 /** 135 /**
133 * Classes defined in the IDL. 136 * Classes defined in the IDL.
134 */ 137 */
135 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{}; 138 final Map<String, ClassDeclaration> classes = <String, ClassDeclaration>{};
136 139
137 /** 140 /**
138 * Enums defined in the IDL. 141 * Enums defined in the IDL.
139 */ 142 */
140 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{}; 143 final Map<String, EnumDeclaration> enums = <String, EnumDeclaration>{};
141 } 144 }
OLDNEW
« pkg/analyzer/lib/src/summary/flat_buffers.dart ('K') | « pkg/analyzer/tool/summary/generate.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698