Index: lib/kernel.dart |
diff --git a/lib/kernel.dart b/lib/kernel.dart |
index 76c22755e0d5776b3cb9ef123d8ac6fe13cf99b1..cb12e3a8ede091a80eb90ee1c85f978bb08d845d 100644 |
--- a/lib/kernel.dart |
+++ b/lib/kernel.dart |
@@ -563,7 +563,7 @@ class Kernel { |
} |
while (notProcessed.isNotEmpty) { |
LibraryElement library = notProcessed.removeFirst(); |
- ir.Library irLibrary = libraries[library]; |
+ ir.Library irLibrary = libraryToIr(library); |
for (ImportElement import in library.imports) { |
if (seen.add(import.importedLibrary)) { |
processLater(import.importedLibrary); |
@@ -588,6 +588,7 @@ class Kernel { |
result.add(irLibrary); |
} |
} |
+ processWorkQueue(); |
return result; |
} |