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

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

Issue 10844002: dart2dart Fix default class unparse (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 | tests/compiler/dart2js/unparser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/dart_backend/emitter.dart
diff --git a/lib/compiler/implementation/dart_backend/emitter.dart b/lib/compiler/implementation/dart_backend/emitter.dart
index 60f614b9df8a98ac14c72a1bc54dcc3f299bc3ea..58d2b6aac991f55c37bdf8d44b6bc8794ab47187 100644
--- a/lib/compiler/implementation/dart_backend/emitter.dart
+++ b/lib/compiler/implementation/dart_backend/emitter.dart
@@ -39,7 +39,7 @@ class Emitter {
sb.add(' ');
classNode.extendsKeyword.value.printOn(sb);
sb.add(' ');
- sb.add(renamer.renameType(classElement.supertype));
+ sb.add(unparser.unparse(classNode.superclass));
}
if (!classNode.interfaces.isEmpty()) {
sb.add(classElement.isInterface() ? ' extends ' : ' implements ');
@@ -47,7 +47,7 @@ class Emitter {
}
if (classNode.defaultClause !== null) {
sb.add(' default ');
- sb.add(renamer.renameType(classElement.defaultClass));
+ sb.add(unparser.unparse(classNode.defaultClause));
}
sb.add('{');
innerElements.forEach((element) {
« no previous file with comments | « no previous file | tests/compiler/dart2js/unparser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698