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

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

Issue 10957060: First stab at parsing redirecting constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. 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
Index: lib/compiler/implementation/tree/unparser.dart
diff --git a/lib/compiler/implementation/tree/unparser.dart b/lib/compiler/implementation/tree/unparser.dart
index c246dc7e6bfc7eb3094067502fb8950c8b4bc811..84c7725e82e603353beffb6b63095ec2e8cb8969 100644
--- a/lib/compiler/implementation/tree/unparser.dart
+++ b/lib/compiler/implementation/tree/unparser.dart
@@ -236,6 +236,9 @@ class Unparser implements Visitor {
}
visitReturn(Return node) {
+ if (node.beginToken.stringValue == '=') {
+ sb.add(' ');
ahe 2012/10/09 10:51:37 Why?
Lasse Reichstein Nielsen 2012/10/09 11:51:26 Looks prettier. We bother putting a space after th
+ }
add(node.beginToken.value);
if (node.hasExpression && node.beginToken.stringValue != '=>') {
sb.add(' ');

Powered by Google App Engine
This is Rietveld 408576698