File tree 2 files changed +6
-5
lines changed
test/codegen/expect/sunflower
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ class BatchCompiler extends AbstractCompiler {
152
152
// TODO(jmesserly): in incremental mode, we can skip the transitive
153
153
// compile of imports/exports.
154
154
_compileLibrary (_dartCore); // implicit dart:core dependency
155
- library.importedLibraries. forEach ( _compileLibrary);
156
- library.exportedLibraries. forEach ( _compileLibrary);
155
+ for ( var import in library.imports) _compileLibrary (import.importedLibrary );
156
+ for ( var export in library.exports) _compileLibrary (export.exportedLibrary );
157
157
158
158
var unitElements = [library.definingCompilationUnit]..addAll (library.parts);
159
159
var units = < CompilationUnit > [];
@@ -269,8 +269,9 @@ class BatchCompiler extends AbstractCompiler {
269
269
var uri = lib.source.uri;
270
270
if (! loaded.add (uri)) return ;
271
271
_collectLibraries (_dartCore, loaded);
272
- for (var l in lib.importedLibraries) _collectLibraries (l, loaded);
273
- for (var l in lib.exportedLibraries) _collectLibraries (l, loaded);
272
+
273
+ for (var l in lib.imports) _collectLibraries (l.importedLibrary, loaded);
274
+ for (var l in lib.exports) _collectLibraries (l.exportedLibrary, loaded);
274
275
// Move the item to the end of the list.
275
276
loaded.remove (uri);
276
277
loaded.add (uri);
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ <h1>drfibonacci's Sunflower Spectacular</h1>
51
51
< script src ="../dev_compiler/runtime/dart/mirrors.js "> </ script >
52
52
< script src ="../dev_compiler/runtime/dart/_js_mirrors.js "> </ script >
53
53
< script src ="../dev_compiler/runtime/dart/js.js "> </ script >
54
- < script src ="dom.js "> </ script >
55
54
< script src ="circle.js "> </ script >
55
+ < script src ="dom.js "> </ script >
56
56
< script src ="painter.js "> </ script >
57
57
< script src ="sunflower.js "> </ script >
58
58
< script > dart_library . start ( 'sunflower/sunflower' ) ; </ script >
You can’t perform that action at this time.
0 commit comments