| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 * statement or via the implicit dependencies on `dart:core` and | 91 * statement or via the implicit dependencies on `dart:core` and |
| 92 * `dart:async`). The first element of this array is a pseudo-dependency | 92 * `dart:async`). The first element of this array is a pseudo-dependency |
| 93 * representing the library itself (it is also used for "dynamic"). | 93 * representing the library itself (it is also used for "dynamic"). |
| 94 * | 94 * |
| 95 * TODO(paulberry): consider removing this entirely and just using | 95 * TODO(paulberry): consider removing this entirely and just using |
| 96 * [UnlinkedLibrary.imports]. | 96 * [UnlinkedLibrary.imports]. |
| 97 */ | 97 */ |
| 98 List<PrelinkedDependency> dependencies; | 98 List<PrelinkedDependency> dependencies; |
| 99 | 99 |
| 100 /** | 100 /** |
| 101 * For each import in [UnlinkedLibrary.imports], an index into [dependencies] | 101 * For each import in [UnlinkedUnit.imports], an index into [dependencies] |
| 102 * of the library being imported. | 102 * of the library being imported. |
| 103 * | 103 * |
| 104 * TODO(paulberry): if [dependencies] is removed, this can be removed as | 104 * TODO(paulberry): if [dependencies] is removed, this can be removed as |
| 105 * well, since there will effectively be a one-to-one mapping. | 105 * well, since there will effectively be a one-to-one mapping. |
| 106 */ | 106 */ |
| 107 List<int> importDependencies; | 107 List<int> importDependencies; |
| 108 } | 108 } |
| 109 | 109 |
| 110 /** | 110 /** |
| 111 * Information about the resolution of an [UnlinkedReference]. | 111 * Information about the resolution of an [UnlinkedReference]. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 */ | 168 */ |
| 169 class PrelinkedUnit { | 169 class PrelinkedUnit { |
| 170 /** | 170 /** |
| 171 * For each reference in [UnlinkedUnit.references], information about how | 171 * For each reference in [UnlinkedUnit.references], information about how |
| 172 * that reference is resolved. | 172 * that reference is resolved. |
| 173 */ | 173 */ |
| 174 List<PrelinkedReference> references; | 174 List<PrelinkedReference> references; |
| 175 } | 175 } |
| 176 | 176 |
| 177 /** | 177 /** |
| 178 * Information about SDK. |
| 179 */ |
| 180 @topLevel |
| 181 class SdkBundle { |
| 182 /** |
| 183 * Information for the libraries units constituting the SDK. |
| 184 */ |
| 185 List<SdkBundleLibrary> libraries; |
| 186 } |
| 187 |
| 188 /** |
| 189 * Information about a single library in SDK. |
| 190 */ |
| 191 class SdkBundleLibrary { |
| 192 /** |
| 193 * The URI of the library, including `dart:`, e.g. `dart:core`. |
| 194 */ |
| 195 String uri; |
| 196 |
| 197 /** |
| 198 * Pre-linked information the library. |
| 199 */ |
| 200 PrelinkedLibrary prelinked; |
| 201 |
| 202 /** |
| 203 * Unlinked information for the compilation units constituting the library. |
| 204 * The zeroth entry in the list is the defining compilation unit; the |
| 205 * remaining entries are the parts, in the order listed in the defining |
| 206 * compilation unit's part declarations. |
| 207 */ |
| 208 List<UnlinkedUnit> unlinkedUnits; |
| 209 } |
| 210 |
| 211 /** |
| 178 * Unlinked summary information about a class declaration. | 212 * Unlinked summary information about a class declaration. |
| 179 */ | 213 */ |
| 180 class UnlinkedClass { | 214 class UnlinkedClass { |
| 181 /** | 215 /** |
| 182 * Name of the class. | 216 * Name of the class. |
| 183 */ | 217 */ |
| 184 String name; | 218 String name; |
| 185 | 219 |
| 186 /** | 220 /** |
| 187 * Type parameters of the class, if any. | 221 * Type parameters of the class, if any. |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 /** | 744 /** |
| 711 * Indicates whether the variable is declared using the `const` keyword. | 745 * Indicates whether the variable is declared using the `const` keyword. |
| 712 */ | 746 */ |
| 713 bool isConst; | 747 bool isConst; |
| 714 | 748 |
| 715 /** | 749 /** |
| 716 * Indicates whether this variable lacks an explicit type declaration. | 750 * Indicates whether this variable lacks an explicit type declaration. |
| 717 */ | 751 */ |
| 718 bool hasImplicitType; | 752 bool hasImplicitType; |
| 719 } | 753 } |
| OLD | NEW |