| Index: dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
|
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
|
| index 17c53c0f1f027e8c8b16046eb821f7c143247933..2540ac0e409123543c52c386b171514aeecea1f2 100644
|
| --- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
|
| +++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
|
| @@ -1326,8 +1326,12 @@ class JavaScriptBackend extends Backend {
|
| if (importTag == null) continue;
|
| LibraryElement importedLibrary = library.getLibraryFromTag(tag);
|
| 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, MessageKind.MIRROR_IMPORT);
|
| + compiler.reportInfo(importTag, kind);
|
| });
|
| }
|
| }
|
|
|