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

Unified Diff: pkg/compiler/lib/src/kernel/constant_visitor.dart

Issue 2604053002: support constant juxtaposition. (Closed)
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/constant_visitor.dart
diff --git a/pkg/compiler/lib/src/kernel/constant_visitor.dart b/pkg/compiler/lib/src/kernel/constant_visitor.dart
index 0d1e1a634fde9ee43cdbc25e0a3a958adafb5292..3d0405d8f6a81d6cf8b7419e2b4bc1b1c786f9c7 100644
--- a/pkg/compiler/lib/src/kernel/constant_visitor.dart
+++ b/pkg/compiler/lib/src/kernel/constant_visitor.dart
@@ -94,7 +94,8 @@ class ConstantVisitor extends ConstantExpressionVisitor<ir.Node, Kernel> {
@override
ir.Node visitConcatenate(ConcatenateConstantExpression exp, Kernel kernel) {
- throw new UnimplementedError('${exp.toStructuredText()} is not supported.');
+ return new ir.StringConcatenation(
+ exp.expressions.map((e) => visit(e, kernel)).toList());
}
@override
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698