| Index: frog/leg/compile_time_constants.dart
|
| diff --git a/frog/leg/compile_time_constants.dart b/frog/leg/compile_time_constants.dart
|
| index 46a5e2a1a2a4fc2ff49414faebc4be424a67bd1b..c6126b90661b0b55c715714bccb5e9f49dc16391 100644
|
| --- a/frog/leg/compile_time_constants.dart
|
| +++ b/frog/leg/compile_time_constants.dart
|
| @@ -769,6 +769,13 @@ class CompileTimeConstantEvaluator extends AbstractVisitor {
|
| return new StringConstant(node.dartString);
|
| }
|
|
|
| + Constant visitStringJuxtaposition(StringJuxtaposition node) {
|
| + if (!node.isInterpolation) {
|
| + return new StringConstant(node.dartString);
|
| + }
|
| + return super.visitStringJuxtaposition(node);
|
| + }
|
| +
|
| // TODO(floitsch): provide better error-messages.
|
| Constant visitSend(Send send) {
|
| Element element = elements[send];
|
| @@ -1010,7 +1017,7 @@ class CompileTimeConstantEvaluator extends AbstractVisitor {
|
|
|
| compiler.registerInstantiatedClass(classElement);
|
| // TODO(floitsch): take generic types into account.
|
| - Type type = classElement.computeType(compiler);
|
| + Type type = classElement.computeType(compiler);
|
| Constant constant = new ConstructedConstant(type, jsNewArguments);
|
| constantHandler.registerCompileTimeConstant(constant);
|
| return constant;
|
|
|