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

Unified Diff: frog/analyze.dart

Issue 9653021: Add support for implicitly concatenating adjacent string literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added test case. 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
« no previous file with comments | « no previous file | frog/gen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/analyze.dart
diff --git a/frog/analyze.dart b/frog/analyze.dart
index 49644c3bc25573d1280321481d7f46dcd0fa2863..04cba5add87d28dffc2576d9de63192813de5d61 100644
--- a/frog/analyze.dart
+++ b/frog/analyze.dart
@@ -774,6 +774,11 @@ class MethodAnalyzer implements TreeVisitor {
return new PureStaticValue(node.value.type, node.span, true);
}
+ Value visitStringConcatExpression(StringConcatExpression node) {
+ node.strings.forEach(visitValue);
+ return _frame._makeValue(world.stringType, node);
+ }
+
Value visitStringInterpExpression(StringInterpExpression node) {
node.pieces.forEach(visitValue);
return _frame._makeValue(world.stringType, node);
« no previous file with comments | « no previous file | frog/gen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698