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

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

Issue 8993009: Implement string interpolation up to SSA. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address (some) review comments and update status file Created 9 years 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 | « dart/frog/leg/tree/nodes.dart ('k') | dart/frog/leg/tree/visitors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/tree/unparser.dart
diff --git a/dart/frog/leg/tree/unparser.dart b/dart/frog/leg/tree/unparser.dart
index b77f6609522006ae61aabe697fb4d636de94cceb..7bcf584290c57dd1154e3a3824e160a874d657c7 100644
--- a/dart/frog/leg/tree/unparser.dart
+++ b/dart/frog/leg/tree/unparser.dart
@@ -229,4 +229,16 @@ class Unparser implements Visitor {
visit(node.expression);
add(node.getEndToken().value);
}
+
+ visitStringInterpolation(StringInterpolation node) {
+ visit(node.string);
+ visit(node.parts);
+ }
+
+ visitStringInterpolationPart(StringInterpolationPart node) {
+ sb.add('\${'); // TODO(ahe): Preserve the real tokens.
+ visit(node.expression);
+ sb.add('}');
+ visit(node.string);
+ }
}
« no previous file with comments | « dart/frog/leg/tree/nodes.dart ('k') | dart/frog/leg/tree/visitors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698