| 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 | 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 * Information about entities in the export namespace of the library that are | 430 * Information about entities in the export namespace of the library that are |
| 431 * not in the public namespace of the library (that is, entities that are | 431 * not in the public namespace of the library (that is, entities that are |
| 432 * brought into the namespace via `export` directives). | 432 * brought into the namespace via `export` directives). |
| 433 * | 433 * |
| 434 * Sorted by name. | 434 * Sorted by name. |
| 435 */ | 435 */ |
| 436 @Id(4) | 436 @Id(4) |
| 437 List<LinkedExportName> get exportNames; | 437 List<LinkedExportName> get exportNames; |
| 438 | 438 |
| 439 /** | 439 /** |
| 440 * Indicates whether this library was summarized in "fallback mode". If |
| 441 * true, all other fields in the data structure have their default values. |
| 442 */ |
| 443 @Id(5) |
| 444 bool get fallbackMode; |
| 445 |
| 446 /** |
| 440 * For each import in [UnlinkedUnit.imports], an index into [dependencies] | 447 * For each import in [UnlinkedUnit.imports], an index into [dependencies] |
| 441 * of the library being imported. | 448 * of the library being imported. |
| 442 */ | 449 */ |
| 443 @Id(1) | 450 @Id(1) |
| 444 List<int> get importDependencies; | 451 List<int> get importDependencies; |
| 445 | 452 |
| 446 /** | 453 /** |
| 447 * The number of elements in [dependencies] which are not "linked" | 454 * The number of elements in [dependencies] which are not "linked" |
| 448 * dependencies (that is, the number of libraries in the direct imports plus | 455 * dependencies (that is, the number of libraries in the direct imports plus |
| 449 * the transitive closure of exports, plus the library itself). | 456 * the transitive closure of exports, plus the library itself). |
| (...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2221 | 2228 |
| 2222 /** | 2229 /** |
| 2223 * Unlinked summary information about a compilation unit ("part file"). | 2230 * Unlinked summary information about a compilation unit ("part file"). |
| 2224 */ | 2231 */ |
| 2225 @TopLevel('UUnt') | 2232 @TopLevel('UUnt') |
| 2226 abstract class UnlinkedUnit extends base.SummaryClass { | 2233 abstract class UnlinkedUnit extends base.SummaryClass { |
| 2227 factory UnlinkedUnit.fromBuffer(List<int> buffer) => | 2234 factory UnlinkedUnit.fromBuffer(List<int> buffer) => |
| 2228 generated.readUnlinkedUnit(buffer); | 2235 generated.readUnlinkedUnit(buffer); |
| 2229 | 2236 |
| 2230 /** | 2237 /** |
| 2238 * If this compilation unit was summarized in fallback mode, the path where |
| 2239 * the compilation unit may be found on disk. Otherwise empty. |
| 2240 * |
| 2241 * When this field is non-empty, all other fields in the data structure have |
| 2242 * their default values. |
| 2243 */ |
| 2244 @Id(16) |
| 2245 String get fallbackModePath; |
| 2246 |
| 2247 /** |
| 2231 * Classes declared in the compilation unit. | 2248 * Classes declared in the compilation unit. |
| 2232 */ | 2249 */ |
| 2233 @Id(2) | 2250 @Id(2) |
| 2234 List<UnlinkedClass> get classes; | 2251 List<UnlinkedClass> get classes; |
| 2235 | 2252 |
| 2236 /** | 2253 /** |
| 2237 * Code range of the unit. | 2254 * Code range of the unit. |
| 2238 */ | 2255 */ |
| 2239 @informative | 2256 @informative |
| 2240 @Id(15) | 2257 @Id(15) |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2444 */ | 2461 */ |
| 2445 @Id(11) | 2462 @Id(11) |
| 2446 int get visibleLength; | 2463 int get visibleLength; |
| 2447 | 2464 |
| 2448 /** | 2465 /** |
| 2449 * If a local variable, the beginning of the visible range; zero otherwise. | 2466 * If a local variable, the beginning of the visible range; zero otherwise. |
| 2450 */ | 2467 */ |
| 2451 @Id(12) | 2468 @Id(12) |
| 2452 int get visibleOffset; | 2469 int get visibleOffset; |
| 2453 } | 2470 } |
| OLD | NEW |