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

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

Issue 1670353002: Enforce LinkedReference.dependency == 0 for contained entities. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add a switch case to clarify. 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
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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 /** 255 /**
256 * Information about the resolution of an [UnlinkedReference]. 256 * Information about the resolution of an [UnlinkedReference].
257 */ 257 */
258 abstract class LinkedReference extends base.SummaryClass { 258 abstract class LinkedReference extends base.SummaryClass {
259 /** 259 /**
260 * Index into [LinkedLibrary.dependencies] indicating which imported library 260 * Index into [LinkedLibrary.dependencies] indicating which imported library
261 * declares the entity being referred to. 261 * declares the entity being referred to.
262 * 262 *
263 * Zero if this entity is contained within another entity (e.g. a class 263 * Zero if this entity is contained within another entity (e.g. a class
264 * member). 264 * member), or if [kind] is [ReferenceKind.prefix].
265 */ 265 */
266 int get dependency; 266 int get dependency;
267 267
268 /** 268 /**
269 * The kind of the entity being referred to. For the pseudo-types `dynamic` 269 * The kind of the entity being referred to. For the pseudo-types `dynamic`
270 * and `void`, the kind is [ReferenceKind.classOrEnum]. 270 * and `void`, the kind is [ReferenceKind.classOrEnum].
271 */ 271 */
272 ReferenceKind get kind; 272 ReferenceKind get kind;
273 273
274 /** 274 /**
(...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1528 int get propagatedTypeSlot; 1528 int get propagatedTypeSlot;
1529 1529
1530 /** 1530 /**
1531 * If this variable is inferable, nonzero slot id identifying which entry in 1531 * If this variable is inferable, nonzero slot id identifying which entry in
1532 * [LinkedLibrary.types] contains the inferred type for this variable. If 1532 * [LinkedLibrary.types] contains the inferred type for this variable. If
1533 * there is no matching entry in [LinkedLibrary.types], then no type was 1533 * there is no matching entry in [LinkedLibrary.types], then no type was
1534 * inferred for this variable, so its static type is `dynamic`. 1534 * inferred for this variable, so its static type is `dynamic`.
1535 */ 1535 */
1536 int get inferredTypeSlot; 1536 int get inferredTypeSlot;
1537 } 1537 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698