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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart

Issue 22791002: Add renames in output when using the mirror helper library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months 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
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 9f4c8163c6da1d4e551259836acbe9b0df7020a9..e867be975b3064160dd0d93185940a3853050581 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
@@ -449,11 +449,15 @@ class DartBackend extends Backend {
}
}
+ Unparser unparser;
if (useMirrorHelperLibrary && compiler.mirrorsLibrary != null) {
MirrorRenamer.addMirrorHelperImport(imports);
+ MirrorRenamer.registerRenames(renames);
+ unparser = new MirrorRenamerUnparser(renames);
+ } else {
+ unparser = new EmitterUnparser(renames);
}
- final unparser = new EmitterUnparser(renames);
emitCode(unparser, imports, topLevelNodes, memberNodes);
compiler.assembledCode = unparser.result;

Powered by Google App Engine
This is Rietveld 408576698