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

Unified Diff: pkg/compiler/lib/src/dart_backend/backend.dart

Issue 717103004: Revert "Emit warning on import of dart:mirrors." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | « pkg/compiler/lib/src/dart2jslib.dart ('k') | pkg/compiler/lib/src/dart_backend/dart_backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart_backend/backend.dart
diff --git a/pkg/compiler/lib/src/dart_backend/backend.dart b/pkg/compiler/lib/src/dart_backend/backend.dart
index 174c58b99a97eb0f904308c538b12a60111466d9..3479b499f0224f31486c9527cd5919e8cc3068d5 100644
--- a/pkg/compiler/lib/src/dart_backend/backend.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart
@@ -261,10 +261,10 @@ class DartBackend extends Backend {
log(String message) => compiler.log('[DartBackend] $message');
- Future onLibrariesLoaded(LoadedLibraries loadedLibraries) {
+ Future onLibrariesLoaded(Map<Uri, LibraryElement> loadedLibraries) {
// All platform classes must be resolved to ensure that their member names
// are preserved.
- loadedLibraries.forEachLibrary((LibraryElement library) {
+ loadedLibraries.values.forEach((LibraryElement library) {
if (library.isPlatformLibrary) {
library.forEachLocalMember((Element element) {
if (element.isClass) {
@@ -275,10 +275,10 @@ class DartBackend extends Backend {
}
});
if (useMirrorHelperLibrary &&
- loadedLibraries.containsLibrary(Compiler.DART_MIRRORS)) {
+ loadedLibraries.containsKey(Compiler.DART_MIRRORS)) {
return compiler.libraryLoader.loadLibrary(
compiler.translateResolvedUri(
- loadedLibraries.getLibrary(Compiler.DART_MIRRORS),
+ loadedLibraries[Compiler.DART_MIRRORS],
MirrorRenamerImpl.DART_MIRROR_HELPER, null)).
then((LibraryElement library) {
mirrorRenamer = new MirrorRenamerImpl(compiler, this, library);
« no previous file with comments | « pkg/compiler/lib/src/dart2jslib.dart ('k') | pkg/compiler/lib/src/dart_backend/dart_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698