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

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

Issue 11267046: [dart2dart] fix after https://codereview.chromium.org/11227007 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
« no previous file with comments | « no previous file | lib/compiler/implementation/dart_backend/placeholder_collector.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/dart_backend/backend.dart
diff --git a/lib/compiler/implementation/dart_backend/backend.dart b/lib/compiler/implementation/dart_backend/backend.dart
index f7cb0e879449d01973978083f2f6a5a420ae2724..0ac9d3e8dc79923a24428aa8ee1f9ca4046d999a 100644
--- a/lib/compiler/implementation/dart_backend/backend.dart
+++ b/lib/compiler/implementation/dart_backend/backend.dart
@@ -310,6 +310,10 @@ class DartBackend extends Backend {
addClass(classElement);
};
+ compiler.resolverWorld.instantiatedClasses.forEach(
+ (ClassElement classElement) {
+ if (shouldOutput(classElement)) addClass(classElement);
+ });
resolvedElements.forEach((element, treeElements) {
if (!shouldOutput(element)) return;
@@ -481,6 +485,14 @@ class EmitterUnparser extends Unparser {
if (node.receiver != null && renames[node.receiver] == '') return;
super.unparseSendReceiver(node, spacesNeeded: spacesNeeded);
}
+
+ unparseFunctionName(Node name) {
+ if (name != null && renames.containsKey(name)) {
+ sb.add(renames[name]);
+ } else {
+ super.unparseFunctionName(name);
+ }
+ }
}
« no previous file with comments | « no previous file | lib/compiler/implementation/dart_backend/placeholder_collector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698