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

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

Issue 2226093002: Record information about a summary's dependencies in the summary itself. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
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 c45f83f281cfc6f156dc0667877845e713354ce1..70b329bfc2bab5905cb1977404d12caa606cac0e 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -658,6 +658,13 @@ abstract class PackageBundle extends base.SummaryClass {
String get apiSignature;
/**
+ * Information about the packages this package depends on, if known.
+ */
+ @Id(8)
+ @informative
+ List<PackageDependencyInfo> get dependencies;
+
+ /**
* Linked libraries.
*/
@Id(0)
@@ -706,6 +713,51 @@ abstract class PackageBundle extends base.SummaryClass {
}
/**
+ * Information about a single dependency of a summary package.
+ */
+abstract class PackageDependencyInfo extends base.SummaryClass {
+ /**
+ * API signature of this dependency.
+ */
+ @Id(0)
+ String get apiSignature;
+
+ /**
+ * If this dependency summarizes any files whose URI takes the form
+ * "package:<package_name>/...", a list of all such package names, sorted
+ * lexicographically. Otherwise empty.
+ */
+ @Id(2)
+ List<String> get includedPackageNames;
+
+ /**
+ * Indicates whether this dependency summarizes any files whose URI takes the
+ * form "dart:...".
+ */
+ @Id(4)
+ bool get includesDartUris;
+
+ /**
+ * Indicates whether this dependency summarizes any files whose URI takes the
+ * form "file:...".
+ */
+ @Id(3)
+ bool get includesFileUris;
+
+ /**
+ * Relative path to the summary file for this dependency. This is intended as
+ * a hint to help the analysis server locate summaries of dependencies. We
+ * don't specify precisely what this path is relative to, but we expect it to
+ * be relative to a directory the analysis server can find (e.g. for projects
+ * built using Bazel, it would be relative to the "bazel-bin" directory).
+ *
+ * Absent if the path is not known.
+ */
+ @Id(1)
+ String get summaryPath;
+}
+
+/**
* Index information about a package.
*/
@TopLevel('Indx')

Powered by Google App Engine
This is Rietveld 408576698