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

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

Issue 1639533003: Record static constant public fields. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 is not 6 * This file is an "idl" style description of the summary format. It is not
7 * executed directly; instead it is parsed and transformed into code that 7 * executed directly; instead it is parsed and transformed into code that
8 * implements the summary format. 8 * implements the summary format.
9 * 9 *
10 * The code generation process introduces the following non-typical semantics: 10 * The code generation process introduces the following non-typical semantics:
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 * The entity is a class or enum. 289 * The entity is a class or enum.
290 */ 290 */
291 classOrEnum, 291 classOrEnum,
292 292
293 /** 293 /**
294 * The entity is a constructor. 294 * The entity is a constructor.
295 */ 295 */
296 constructor, 296 constructor,
297 297
298 /** 298 /**
299 * The entity is a static const field.
300 */
301 constField,
302
303 /**
299 * The entity is a static method. 304 * The entity is a static method.
300 */ 305 */
301 staticMethod, 306 staticMethod,
302 307
303 /** 308 /**
304 * The entity is a typedef. 309 * The entity is a typedef.
305 */ 310 */
306 typedef, 311 typedef,
307 312
308 /** 313 /**
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 */ 1188 */
1184 ReferenceKind kind; 1189 ReferenceKind kind;
1185 1190
1186 /** 1191 /**
1187 * If the entity being referred to is generic, the number of type parameters 1192 * If the entity being referred to is generic, the number of type parameters
1188 * it accepts. Otherwise zero. 1193 * it accepts. Otherwise zero.
1189 */ 1194 */
1190 int numTypeParameters; 1195 int numTypeParameters;
1191 1196
1192 /** 1197 /**
1193 * If this [UnlinkedPublicName] is a class, the list of static methods 1198 * If this [UnlinkedPublicName] is a class, the list of members which can be
1194 * and constructors. Otherwise empty. 1199 * referenced from constants - static constant fields, static methods, and
1200 * constructors. Otherwise empty.
1195 */ 1201 */
1196 List<UnlinkedPublicName> executables; 1202 List<UnlinkedPublicName> constMembers;
1197 } 1203 }
1198 1204
1199 /** 1205 /**
1200 * Unlinked summary information about what a compilation unit contributes to a 1206 * Unlinked summary information about what a compilation unit contributes to a
1201 * library's public namespace. This is the subset of [UnlinkedUnit] that is 1207 * library's public namespace. This is the subset of [UnlinkedUnit] that is
1202 * required from dependent libraries in order to perform prelinking. 1208 * required from dependent libraries in order to perform prelinking.
1203 */ 1209 */
1204 @topLevel 1210 @topLevel
1205 class UnlinkedPublicNamespace { 1211 class UnlinkedPublicNamespace {
1206 /** 1212 /**
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 int propagatedTypeSlot; 1461 int propagatedTypeSlot;
1456 1462
1457 /** 1463 /**
1458 * If this variable is inferrable, nonzero slot id identifying which entry in 1464 * If this variable is inferrable, nonzero slot id identifying which entry in
1459 * [LinkedLibrary.types] contains the inferred type for this variable. If 1465 * [LinkedLibrary.types] contains the inferred type for this variable. If
1460 * there is no matching entry in [LinkedLibrary.types], then no type was 1466 * there is no matching entry in [LinkedLibrary.types], then no type was
1461 * inferred for this variable, so its static type is `dynamic`. 1467 * inferred for this variable, so its static type is `dynamic`.
1462 */ 1468 */
1463 int inferredTypeSlot; 1469 int inferredTypeSlot;
1464 } 1470 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698