| OLD | NEW |
| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 * The entity being referred to does not exist. | 161 * The entity being referred to does not exist. |
| 162 */ | 162 */ |
| 163 unresolved | 163 unresolved |
| 164 } | 164 } |
| 165 | 165 |
| 166 /** | 166 /** |
| 167 * Pre-linked summary of a compilation unit. | 167 * Pre-linked summary of a compilation unit. |
| 168 */ | 168 */ |
| 169 class PrelinkedUnit { | 169 class PrelinkedUnit { |
| 170 /** | 170 /** |
| 171 * The unlinked summary of the compilation unit | |
| 172 */ | |
| 173 UnlinkedUnit unlinked; | |
| 174 | |
| 175 /** | |
| 176 * For each reference in [UnlinkedUnit.references], information about how | 171 * For each reference in [UnlinkedUnit.references], information about how |
| 177 * that reference is resolved. | 172 * that reference is resolved. |
| 178 */ | 173 */ |
| 179 List<PrelinkedReference> references; | 174 List<PrelinkedReference> references; |
| 180 } | 175 } |
| 181 | 176 |
| 182 /** | 177 /** |
| 183 * Unlinked summary information about a class declaration. | 178 * Unlinked summary information about a class declaration. |
| 184 */ | 179 */ |
| 185 class UnlinkedClass { | 180 class UnlinkedClass { |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 /** | 614 /** |
| 620 * If this is an instantiation of a generic type, the type arguments used to | 615 * If this is an instantiation of a generic type, the type arguments used to |
| 621 * instantiate it. Trailing type arguments of type `dynamic` are omitted. | 616 * instantiate it. Trailing type arguments of type `dynamic` are omitted. |
| 622 */ | 617 */ |
| 623 List<UnlinkedTypeRef> typeArguments; | 618 List<UnlinkedTypeRef> typeArguments; |
| 624 } | 619 } |
| 625 | 620 |
| 626 /** | 621 /** |
| 627 * Unlinked summary information about a compilation unit ("part file"). | 622 * Unlinked summary information about a compilation unit ("part file"). |
| 628 */ | 623 */ |
| 624 @topLevel |
| 629 class UnlinkedUnit { | 625 class UnlinkedUnit { |
| 630 /** | 626 /** |
| 631 * Name of the library (from a "library" declaration, if present). | 627 * Name of the library (from a "library" declaration, if present). |
| 632 */ | 628 */ |
| 633 String libraryName; | 629 String libraryName; |
| 634 | 630 |
| 635 /** | 631 /** |
| 636 * Top level and prefixed names referred to by this compilation unit. The | 632 * Top level and prefixed names referred to by this compilation unit. The |
| 637 * zeroth element of this array is always populated and always represents a | 633 * zeroth element of this array is always populated and always represents a |
| 638 * reference to the pseudo-type "dynamic". | 634 * reference to the pseudo-type "dynamic". |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 /** | 710 /** |
| 715 * Indicates whether the variable is declared using the `const` keyword. | 711 * Indicates whether the variable is declared using the `const` keyword. |
| 716 */ | 712 */ |
| 717 bool isConst; | 713 bool isConst; |
| 718 | 714 |
| 719 /** | 715 /** |
| 720 * Indicates whether this variable lacks an explicit type declaration. | 716 * Indicates whether this variable lacks an explicit type declaration. |
| 721 */ | 717 */ |
| 722 bool hasImplicitType; | 718 bool hasImplicitType; |
| 723 } | 719 } |
| OLD | NEW |