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

Unified Diff: pkg/analyzer/lib/src/summary/idl.dart

Issue 1725913002: Add file hashes to SdkBundle; rename to PackageBundle. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.dart ('k') | pkg/analyzer/lib/src/summary/summarize_elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/idl.dart
diff --git a/pkg/analyzer/lib/src/summary/idl.dart b/pkg/analyzer/lib/src/summary/idl.dart
index e49cf9b5152cb33a65cb65178ec00410c453dced..38a49d34d1c12cb0d945e8519d76abf05c2ae286 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -354,6 +354,46 @@ abstract class LinkedUnit extends base.SummaryClass {
}
/**
+ * Summary information about a package.
+ */
+@topLevel
+abstract class PackageBundle extends base.SummaryClass {
+ factory PackageBundle.fromBuffer(List<int> buffer) =>
+ generated.readPackageBundle(buffer);
+
+ /**
+ * Linked libraries.
+ */
+ @Id(0)
+ List<LinkedLibrary> get linkedLibraries;
+
+ /**
+ * 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.
+ */
+ @Id(1)
+ List<String> get linkedLibraryUris;
+
+ /**
+ * List of MD5 hashes of the files listed in [unlinkedUnitUris]. Each hash
+ * is encoded as a hexadecimal string using lower case letters.
+ */
+ @Id(4)
+ List<String> get unlinkedUnitHashes;
+
+ /**
+ * 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.
+ */
+ @Id(2)
+ List<UnlinkedUnit> get unlinkedUnits;
+
+ /**
+ * The list of URIs of items in [unlinkedUnits], e.g. `dart:core/bool.dart`.
+ */
+ @Id(3)
+ List<String> get unlinkedUnitUris;
+}
+
+/**
* Enum used to indicate the kind of entity referred to by a
* [LinkedReference].
*/
@@ -422,39 +462,6 @@ enum ReferenceKind {
}
/**
- * Information about SDK.
- */
-@topLevel
-abstract class SdkBundle extends base.SummaryClass {
- factory SdkBundle.fromBuffer(List<int> buffer) =>
- generated.readSdkBundle(buffer);
-
- /**
- * Linked libraries.
- */
- @Id(0)
- List<LinkedLibrary> get linkedLibraries;
-
- /**
- * The list of URIs of items in [linkedLibraries], e.g. `dart:core`.
- */
- @Id(1)
- List<String> get linkedLibraryUris;
-
- /**
- * Unlinked information for the compilation units constituting the SDK.
- */
- @Id(2)
- List<UnlinkedUnit> get unlinkedUnits;
-
- /**
- * The list of URIs of items in [unlinkedUnits], e.g. `dart:core/bool.dart`.
- */
- @Id(3)
- List<String> get unlinkedUnitUris;
-}
-
-/**
* Unlinked summary information about a class declaration.
*/
abstract class UnlinkedClass extends base.SummaryClass {
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.dart ('k') | pkg/analyzer/lib/src/summary/summarize_elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698