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

Unified Diff: runtime/vm/service/service.md

Issue 1160943002: Give structured information about imports and export in the service's library response. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: add test Created 5 years, 7 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 | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service/service.md
diff --git a/runtime/vm/service/service.md b/runtime/vm/service/service.md
index f9ee96a532367a6626a42d406e3872ae66cfbd85..af2259bdde8e4396e3618a1949b87c3072cd1d50 100644
--- a/runtime/vm/service/service.md
+++ b/runtime/vm/service/service.md
@@ -1297,7 +1297,7 @@ class Library extends Object {
string uri;
// A list of the imports for this library.
- @Library[] imports;
+ LibraryDependency[] dependencies;
// A list of the scripts which constitute this library.
@Script[] scripts;
@@ -1315,6 +1315,24 @@ class Library extends Object {
A _Library_ provides information about a Dart language library.
+```
+class LibraryDependency {
turnidge 2015/05/28 20:10:28 Note for future reviews... Each type has its own #
+ // Is this dependency an import (rather than an export)?
+ bool isImport;
+
+ // Is this dependency deferred?
+ bool isDeferred;
+
+ // The prefix of an 'as' import, or null.
+ String prefix;
+
+ // The library being imported or exported.
+ @Library target;
+}
+```
+
+A _LibraryDependency_ provides information about an import or export.
+
### List
```
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698