| Index: pkg/compiler/lib/src/js_backend/backend.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
|
| index c7b70d2dfcd83b6cf4436a9d0ddf7a5b17a98727..3dbb7908af7ee1cf092fcaad5776543e8593c708 100644
|
| --- a/pkg/compiler/lib/src/js_backend/backend.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/backend.dart
|
| @@ -1520,17 +1520,15 @@ class JavaScriptBackend extends Backend {
|
| 'percentage': percentage.round()});
|
| for (LibraryElement library in compiler.libraryLoader.libraries) {
|
| if (library.isInternalLibrary) continue;
|
| - for (LibraryTag tag in library.tags) {
|
| - Import importTag = tag.asImport();
|
| - if (importTag == null) continue;
|
| - LibraryElement importedLibrary = library.getLibraryFromTag(tag);
|
| + for (ImportElement import in library.imports) {
|
| + LibraryElement importedLibrary = import.importedLibrary;
|
| if (importedLibrary != compiler.mirrorsLibrary) continue;
|
| MessageKind kind =
|
| compiler.mirrorUsageAnalyzerTask.hasMirrorUsage(library)
|
| ? MessageKind.MIRROR_IMPORT
|
| : MessageKind.MIRROR_IMPORT_NO_USAGE;
|
| compiler.withCurrentElement(library, () {
|
| - compiler.reportInfo(importTag, kind);
|
| + compiler.reportInfo(import, kind);
|
| });
|
| }
|
| }
|
|
|