Chromium Code Reviews| 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 347 | 347 |
| 348 /** | 348 /** |
| 349 * List associating slot ids found inside the unlinked summary for the | 349 * List associating slot ids found inside the unlinked summary for the |
| 350 * compilation unit with propagated and inferred types. | 350 * compilation unit with propagated and inferred types. |
| 351 */ | 351 */ |
| 352 @Id(1) | 352 @Id(1) |
| 353 List<EntityRef> get types; | 353 List<EntityRef> get types; |
| 354 } | 354 } |
| 355 | 355 |
| 356 /** | 356 /** |
| 357 * Summary information about a package. | |
| 358 */ | |
| 359 @topLevel | |
| 360 abstract class PackageBundle extends base.SummaryClass { | |
| 361 factory PackageBundle.fromBuffer(List<int> buffer) => | |
| 362 generated.readPackageBundle(buffer); | |
| 363 | |
| 364 /** | |
| 365 * Linked libraries. | |
| 366 */ | |
| 367 @Id(0) | |
| 368 List<LinkedLibrary> get linkedLibraries; | |
| 369 | |
| 370 /** | |
| 371 * The list of URIs of items in [linkedLibraries], e.g. `dart:core`. | |
|
scheglov
2016/02/23 18:50:18
Maybe add also a "package:" type URI example.
Paul Berry
2016/02/23 18:55:24
Done.
| |
| 372 */ | |
| 373 @Id(1) | |
| 374 List<String> get linkedLibraryUris; | |
| 375 | |
| 376 /** | |
| 377 * List of MD5 hashes of the files listed in [unlinkedUnitUris]. Each hash | |
| 378 * is encoded as a hexadecimal string using lower case letters. | |
| 379 */ | |
| 380 @Id(4) | |
| 381 List<String> get unlinkedUnitHashes; | |
| 382 | |
| 383 /** | |
| 384 * Unlinked information for the compilation units constituting the SDK. | |
|
scheglov
2016/02/23 18:50:18
"the SDK" => "the package"?
Paul Berry
2016/02/23 18:55:24
Done.
| |
| 385 */ | |
| 386 @Id(2) | |
| 387 List<UnlinkedUnit> get unlinkedUnits; | |
| 388 | |
| 389 /** | |
| 390 * The list of URIs of items in [unlinkedUnits], e.g. `dart:core/bool.dart`. | |
| 391 */ | |
| 392 @Id(3) | |
| 393 List<String> get unlinkedUnitUris; | |
| 394 } | |
| 395 | |
| 396 /** | |
| 357 * Enum used to indicate the kind of entity referred to by a | 397 * Enum used to indicate the kind of entity referred to by a |
| 358 * [LinkedReference]. | 398 * [LinkedReference]. |
| 359 */ | 399 */ |
| 360 enum ReferenceKind { | 400 enum ReferenceKind { |
| 361 /** | 401 /** |
| 362 * The entity is a class or enum. | 402 * The entity is a class or enum. |
| 363 */ | 403 */ |
| 364 classOrEnum, | 404 classOrEnum, |
| 365 | 405 |
| 366 /** | 406 /** |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 415 */ | 455 */ |
| 416 prefix, | 456 prefix, |
| 417 | 457 |
| 418 /** | 458 /** |
| 419 * The entity being referred to does not exist. | 459 * The entity being referred to does not exist. |
| 420 */ | 460 */ |
| 421 unresolved | 461 unresolved |
| 422 } | 462 } |
| 423 | 463 |
| 424 /** | 464 /** |
| 425 * Information about SDK. | |
| 426 */ | |
| 427 @topLevel | |
| 428 abstract class SdkBundle extends base.SummaryClass { | |
| 429 factory SdkBundle.fromBuffer(List<int> buffer) => | |
| 430 generated.readSdkBundle(buffer); | |
| 431 | |
| 432 /** | |
| 433 * Linked libraries. | |
| 434 */ | |
| 435 @Id(0) | |
| 436 List<LinkedLibrary> get linkedLibraries; | |
| 437 | |
| 438 /** | |
| 439 * The list of URIs of items in [linkedLibraries], e.g. `dart:core`. | |
| 440 */ | |
| 441 @Id(1) | |
| 442 List<String> get linkedLibraryUris; | |
| 443 | |
| 444 /** | |
| 445 * Unlinked information for the compilation units constituting the SDK. | |
| 446 */ | |
| 447 @Id(2) | |
| 448 List<UnlinkedUnit> get unlinkedUnits; | |
| 449 | |
| 450 /** | |
| 451 * The list of URIs of items in [unlinkedUnits], e.g. `dart:core/bool.dart`. | |
| 452 */ | |
| 453 @Id(3) | |
| 454 List<String> get unlinkedUnitUris; | |
| 455 } | |
| 456 | |
| 457 /** | |
| 458 * Unlinked summary information about a class declaration. | 465 * Unlinked summary information about a class declaration. |
| 459 */ | 466 */ |
| 460 abstract class UnlinkedClass extends base.SummaryClass { | 467 abstract class UnlinkedClass extends base.SummaryClass { |
| 461 /** | 468 /** |
| 462 * Annotations for this class. | 469 * Annotations for this class. |
| 463 */ | 470 */ |
| 464 @Id(5) | 471 @Id(5) |
| 465 List<UnlinkedConst> get annotations; | 472 List<UnlinkedConst> get annotations; |
| 466 | 473 |
| 467 /** | 474 /** |
| (...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1984 */ | 1991 */ |
| 1985 @Id(11) | 1992 @Id(11) |
| 1986 int get visibleLength; | 1993 int get visibleLength; |
| 1987 | 1994 |
| 1988 /** | 1995 /** |
| 1989 * If a local variable, the beginning of the visible range; zero otherwise. | 1996 * If a local variable, the beginning of the visible range; zero otherwise. |
| 1990 */ | 1997 */ |
| 1991 @Id(12) | 1998 @Id(12) |
| 1992 int get visibleOffset; | 1999 int get visibleOffset; |
| 1993 } | 2000 } |
| OLD | NEW |