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

Side by Side Diff: pkg/analyzer/lib/src/summary/idl.dart

Issue 2957203002: Index subtypes with supertypes, and names of members they declare. (Closed)
Patch Set: Created 3 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
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 is an "idl" style description of the summary format. It 6 * This file is an "idl" style description of the summary format. It
7 * contains abstract classes which declare the interface for reading data from 7 * contains abstract classes which declare the interface for reading data from
8 * summaries. It is parsed and transformed into code that implements the 8 * summaries. It is parsed and transformed into code that implements the
9 * summary format. 9 * summary format.
10 * 10 *
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 List<AnalysisDriverUnitError> get errors; 122 List<AnalysisDriverUnitError> get errors;
123 123
124 /** 124 /**
125 * The index of the unit. 125 * The index of the unit.
126 */ 126 */
127 @Id(1) 127 @Id(1)
128 AnalysisDriverUnitIndex get index; 128 AnalysisDriverUnitIndex get index;
129 } 129 }
130 130
131 /** 131 /**
132 * Information about a subtype of one or more classes.
133 */
134 abstract class AnalysisDriverSubtype extends base.SummaryClass {
135 /**
136 * The names of defined class members.
137 * The list is sorted in ascending order.
138 */
139 @Id(2)
140 List<String> get members;
141
142 /**
143 * The name of the class.
144 */
145 @Id(0)
146 String get name;
147
148 /**
149 * The identifiers of the direct supertypes.
150 * The list is sorted in ascending order.
151 */
152 @Id(1)
153 List<String> get supertypes;
154 }
155
156 /**
132 * Information about an error in a resolved unit. 157 * Information about an error in a resolved unit.
133 */ 158 */
134 abstract class AnalysisDriverUnitError extends base.SummaryClass { 159 abstract class AnalysisDriverUnitError extends base.SummaryClass {
135 /** 160 /**
136 * The optional correction hint for the error. 161 * The optional correction hint for the error.
137 */ 162 */
138 @Id(4) 163 @Id(4)
139 String get correction; 164 String get correction;
140 165
141 /** 166 /**
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 246
222 /** 247 /**
223 * List of unique element strings used in this index. The list is sorted in 248 * List of unique element strings used in this index. The list is sorted in
224 * ascending order, so that the client can quickly check the presence of a 249 * ascending order, so that the client can quickly check the presence of a
225 * string in this index. 250 * string in this index.
226 */ 251 */
227 @Id(0) 252 @Id(0)
228 List<String> get strings; 253 List<String> get strings;
229 254
230 /** 255 /**
256 * The list of classes declared in the unit.
257 */
258 @Id(18)
259 List<AnalysisDriverSubtype> get subtypes;
260
261 /**
231 * Each item of this list corresponds to the library URI of a unique library 262 * Each item of this list corresponds to the library URI of a unique library
232 * specific unit referenced in the index. It is an index into [strings] list. 263 * specific unit referenced in the index. It is an index into [strings] list.
233 */ 264 */
234 @Id(2) 265 @Id(2)
235 List<int> get unitLibraryUris; 266 List<int> get unitLibraryUris;
236 267
237 /** 268 /**
238 * Each item of this list corresponds to the unit URI of a unique library 269 * Each item of this list corresponds to the unit URI of a unique library
239 * specific unit referenced in the index. It is an index into [strings] list. 270 * specific unit referenced in the index. It is an index into [strings] list.
240 */ 271 */
(...skipping 3111 matching lines...) Expand 10 before | Expand all | Expand 10 after
3352 @Id(11) 3383 @Id(11)
3353 int get visibleLength; 3384 int get visibleLength;
3354 3385
3355 /** 3386 /**
3356 * If a local variable, the beginning of the visible range; zero otherwise. 3387 * If a local variable, the beginning of the visible range; zero otherwise.
3357 */ 3388 */
3358 @informative 3389 @informative
3359 @Id(12) 3390 @Id(12)
3360 int get visibleOffset; 3391 int get visibleOffset;
3361 } 3392 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/test/src/dart/analysis/index_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698