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

Unified Diff: pkg/compiler/lib/src/mirrors/dart2js_library_mirror.dart

Issue 924393003: dart2js: Support isDeferred on DependencyMirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files. Created 5 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 | « no previous file | pkg/pkg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/mirrors/dart2js_library_mirror.dart
diff --git a/pkg/compiler/lib/src/mirrors/dart2js_library_mirror.dart b/pkg/compiler/lib/src/mirrors/dart2js_library_mirror.dart
index 362ec6acf0e6d3f359f36ef0a8a4424168207bcf..46c2a92653dbbcbf97cb2f565430f51d41ddcd27 100644
--- a/pkg/compiler/lib/src/mirrors/dart2js_library_mirror.dart
+++ b/pkg/compiler/lib/src/mirrors/dart2js_library_mirror.dart
@@ -154,6 +154,14 @@ class Dart2JsLibraryDependencyMirror implements LibraryDependencySourceMirror {
bool get isExport => _node.asExport() != null;
+ bool get isDeferred {
+ if (_node is Import) {
+ Import import = _node;
+ return import.isDeferred;
+ }
+ return false;
+ }
+
List<InstanceMirror> get metadata => const <InstanceMirror>[];
}
« no previous file with comments | « no previous file | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698