Index: sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart |
index 99c244150d24a7ee58dd985f92f96e35c10b399c..cb1f3868518d45786fd0f707344505a1aab437a1 100644 |
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart |
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart |
@@ -261,10 +261,10 @@ class DartBackend extends Backend { |
log(String message) => compiler.log('[DartBackend] $message'); |
- Future onLibrariesLoaded(Map<Uri, LibraryElement> loadedLibraries) { |
+ Future onLibrariesLoaded(LoadedLibraries loadedLibraries) { |
// All platform classes must be resolved to ensure that their member names |
// are preserved. |
- loadedLibraries.values.forEach((LibraryElement library) { |
+ loadedLibraries.forEachLibrary((LibraryElement library) { |
if (library.isPlatformLibrary) { |
library.forEachLocalMember((Element element) { |
if (element.isClass) { |
@@ -275,10 +275,10 @@ class DartBackend extends Backend { |
} |
}); |
if (useMirrorHelperLibrary && |
- loadedLibraries.containsKey(Compiler.DART_MIRRORS)) { |
+ loadedLibraries.containsLibrary(Compiler.DART_MIRRORS)) { |
return compiler.libraryLoader.loadLibrary( |
compiler.translateResolvedUri( |
- loadedLibraries[Compiler.DART_MIRRORS], |
+ loadedLibraries.getLibrary(Compiler.DART_MIRRORS), |
MirrorRenamerImpl.DART_MIRROR_HELPER, null)). |
then((LibraryElement library) { |
mirrorRenamer = new MirrorRenamerImpl(compiler, this, library); |