Chromium Code Reviews| Index: frog/leg/compile_time_constants.dart |
| diff --git a/frog/leg/compile_time_constants.dart b/frog/leg/compile_time_constants.dart |
| index cefe2f5f2a70f8d0f44862a181f09597555c33cf..238d5cc884c9d259765123935010d8b0fab3e1dd 100644 |
| --- a/frog/leg/compile_time_constants.dart |
| +++ b/frog/leg/compile_time_constants.dart |
| @@ -333,9 +333,9 @@ class MapConstant extends ObjectConstant { |
| buffer.add("$isolatePrototype.$name"); |
| } else { |
| value.writeJsCode(buffer, handler); |
| - } |
| + } |
| } |
| - buffer.add("}"); |
| + buffer.add("}"); |
| } |
| void badFieldCountError() { |
| @@ -768,6 +768,13 @@ class CompileTimeConstantEvaluator extends AbstractVisitor { |
| return new StringConstant(node.dartString); |
| } |
| + Constant visitStringJuxtapostion(StringJuxtaposition node) { |
| + if (node.dartString !== null) { |
|
ngeoffray
2012/03/14 12:29:58
Replace with !node.isInterpolation?
Lasse Reichstein Nielsen
2012/03/14 13:04:49
True.
I'm still not sure I like the isInterpolatio
|
| + return new StringConstant(node.dartString); |
| + } |
| + super.visitStringJuxtapostion(node); |
| + } |
| + |
| // TODO(floitsch): provide better error-messages. |
| Constant visitSend(Send send) { |
| Element element = elements[send]; |