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

Unified Diff: lib/src/codegen/js_module_item_order.dart

Issue 1141133002: isLoaded can now handle elements from other libraries (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/js_module_item_order.dart
diff --git a/lib/src/codegen/js_module_item_order.dart b/lib/src/codegen/js_module_item_order.dart
index eadf6716f5578d1803c6d9a92bf87b085bf49435..072e170d1d76f7f102b33be933af148fa0abdbe4 100644
--- a/lib/src/codegen/js_module_item_order.dart
+++ b/lib/src/codegen/js_module_item_order.dart
@@ -46,7 +46,9 @@ class ModuleItemLoadOrder {
ModuleItemLoadOrder(this._emitModuleItem);
- bool isLoaded(Element e) => _loaded[e] == true;
+ bool isLoaded(Element e) => (e.library == _currentLibrary)
+ ? _loaded[e] == true
+ : libraryIsLoaded(e.library);
/// Collect top-level elements and nodes we need to emit.
void collectElements(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698