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

Unified Diff: pkg/analyzer/lib/src/summary/format.fbs

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/format.fbs
diff --git a/pkg/analyzer/lib/src/summary/format.fbs b/pkg/analyzer/lib/src/summary/format.fbs
index 0e802770c4027b7901afb539eb3e4653c0298569..ba46f0100e07dcaf05709eeabd54a3e46bad449d 100644
--- a/pkg/analyzer/lib/src/summary/format.fbs
+++ b/pkg/analyzer/lib/src/summary/format.fbs
@@ -1188,6 +1188,11 @@ table PackageBundle {
apiSignature:string (id: 7);
/**
+ * Information about the packages this package depends on, if known.
+ */
+ dependencies:[PackageDependencyInfo] (id: 8);
+
+ /**
* Linked libraries.
*/
linkedLibraries:[LinkedLibrary] (id: 0);
@@ -1228,6 +1233,46 @@ table PackageBundle {
}
/**
+ * Information about a single dependency of a summary package.
+ */
+table PackageDependencyInfo {
+ /**
+ * API signature of this dependency.
+ */
+ apiSignature:string (id: 0);
+
+ /**
+ * 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.
+ */
+ includedPackageNames:[string] (id: 2);
+
+ /**
+ * Indicates whether this dependency summarizes any files whose URI takes the
+ * form "dart:...".
+ */
+ includesDartUris:bool (id: 4);
+
+ /**
+ * Indicates whether this dependency summarizes any files whose URI takes the
+ * form "file:...".
+ */
+ includesFileUris:bool (id: 3);
+
+ /**
+ * 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.
+ */
+ summaryPath:string (id: 1);
+}
+
+/**
* Index information about a package.
*/
table PackageIndex {

Powered by Google App Engine
This is Rietveld 408576698