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

Unified Diff: sdk/lib/_internal/compiler/implementation/tree/unparser.dart

Issue 422483002: Mix in [TreeElementMixin] only on nodes that need it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 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/tree/unparser.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree/unparser.dart b/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
index fceda5b7f0f0ec6e7d0d98c5a7f75c1104383d22..a09aec55cfc8440df4914a2001b1e997e3090aed 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
@@ -366,14 +366,19 @@ class Unparser implements Visitor {
visitIdentifier(node);
}
+ visitRedirectingFactoryBody(RedirectingFactoryBody node) {
+ space();
+ write(node.beginToken.value);
+ space();
+ visit(node.constructorReference);
+ write(node.endToken.value);
+ }
+
visitRethrow(Rethrow node) {
write('rethrow;');
}
visitReturn(Return node) {
- if (node.isRedirectingFactoryBody) {
- write(' ');
- }
write(node.beginToken.value);
if (node.hasExpression && node.beginToken.stringValue != '=>') {
write(' ');

Powered by Google App Engine
This is Rietveld 408576698