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

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

Issue 1468583002: Add a unit index to prelinked type references in summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove an unnecessary TODO. Created 5 years, 1 month 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/test/src/summary/summary_test.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 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 * Index into [UnlinkedLibrary.dependencies] indicating which imported library 118 * Index into [UnlinkedLibrary.dependencies] indicating which imported library
119 * declares the entity being referred to. 119 * declares the entity being referred to.
120 */ 120 */
121 int dependency; 121 int dependency;
122 122
123 /** 123 /**
124 * The kind of the entity being referred to. For the pseudo-type `dynamic`, 124 * The kind of the entity being referred to. For the pseudo-type `dynamic`,
125 * the kind if [PrelinkedReferenceKind.classOrEnum]. 125 * the kind if [PrelinkedReferenceKind.classOrEnum].
126 */ 126 */
127 PrelinkedReferenceKind kind; 127 PrelinkedReferenceKind kind;
128
129 /**
130 * Integer index indicating which unit in the imported library contains the
131 * definition of the entity. As with indices into [UnlinkedLibrary.units],
132 * zero represents the defining compilation unit, and nonzero values
133 * represent parts in the order of the corresponding `part` declarations.
134 */
135 int unit;
128 } 136 }
129 137
130 /** 138 /**
131 * Enum used to indicate the kind of entity referred to by a 139 * Enum used to indicate the kind of entity referred to by a
132 * [PrelinkedReference]. 140 * [PrelinkedReference].
133 */ 141 */
134 enum PrelinkedReferenceKind { 142 enum PrelinkedReferenceKind {
135 /** 143 /**
136 * The entity is a class or enum. 144 * The entity is a class or enum.
137 */ 145 */
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 * Unlinked summary of an entire library. 435 * Unlinked summary of an entire library.
428 */ 436 */
429 class UnlinkedLibrary { 437 class UnlinkedLibrary {
430 /** 438 /**
431 * Top level and prefixed names referred to by this library. 439 * Top level and prefixed names referred to by this library.
432 */ 440 */
433 List<UnlinkedReference> references; 441 List<UnlinkedReference> references;
434 442
435 /** 443 /**
436 * Information about the units constituting this library. The first unit 444 * Information about the units constituting this library. The first unit
437 * listed is always the defining compilation unit. 445 * listed is always the defining compilation unit. The remaining units are
446 * listed in the order of their corresponding `part` declarations.
438 */ 447 */
439 List<UnlinkedUnit> units; 448 List<UnlinkedUnit> units;
440 449
441 /** 450 /**
442 * Name of the library (from a "library" declaration, if present). 451 * Name of the library (from a "library" declaration, if present).
443 */ 452 */
444 String name; 453 String name;
445 454
446 /** 455 /**
447 * Classes declared in the library. 456 * Classes declared in the library.
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 /** 724 /**
716 * Indicates whether the variable is declared using the `final` keyword. 725 * Indicates whether the variable is declared using the `final` keyword.
717 */ 726 */
718 bool isFinal; 727 bool isFinal;
719 728
720 /** 729 /**
721 * Indicates whether the variable is declared using the `const` keyword. 730 * Indicates whether the variable is declared using the `const` keyword.
722 */ 731 */
723 bool isConst; 732 bool isConst;
724 } 733 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/summary/summary_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698