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

Unified Diff: frog/leg/tree/unparser.dart

Issue 9642001: Make string juxtaposition combine properly with string interpolations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments so far. Created 8 years, 9 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: frog/leg/tree/unparser.dart
diff --git a/frog/leg/tree/unparser.dart b/frog/leg/tree/unparser.dart
index 803d68074b0cd0e722fe215b3c72104ba13ddb17..f831c1a6139547cec7394faf5b16fe5e4ade2d27 100644
--- a/frog/leg/tree/unparser.dart
+++ b/frog/leg/tree/unparser.dart
@@ -119,15 +119,10 @@ class Unparser implements Visitor {
add(node.token.value);
}
- visitLiteralStringJuxtaposition(LiteralStringJuxtaposition node) {
- for (Link<Expression> literals = node.literals;
- !literals.isEmpty();
- literals = literals.tail) {
- visit(literals.head);
- if (!literals.tail.isEmpty()) {
- sb.add(" ");
- }
- }
+ visitStringJuxtaposition(LiteralStringJuxtaposition node) {
+ visit(node.first);
+ sb.add(" ");
+ visit(node.second);
}
visitLiteralNull(LiteralNull node) {

Powered by Google App Engine
This is Rietveld 408576698