Index: pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart |
diff --git a/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart b/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart |
index d200e405e5cf36eef3aa733695a69536760dfbdf..25350f95ddceac3b726a31867790117ffc1cc44f 100644 |
--- a/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart |
+++ b/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart |
@@ -269,17 +269,17 @@ class ConcatenateStrings extends Expression { |
*/ |
class Constant extends Expression { |
final ConstantExpression expression; |
+ final values.ConstantValue value; |
- Constant(this.expression); |
+ Constant(this.expression, this.value); |
Constant.bool(values.BoolConstantValue constantValue) |
: expression = new BoolConstantExpression( |
- constantValue.primitiveValue, constantValue); |
+ constantValue.primitiveValue), |
+ value = constantValue; |
accept(ExpressionVisitor visitor) => visitor.visitConstant(this); |
accept1(ExpressionVisitor1 visitor, arg) => visitor.visitConstant(this, arg); |
- |
- values.ConstantValue get value => expression.value; |
} |
class This extends Expression { |