Index: pkg/compiler/lib/src/constants/constant_constructors.dart |
diff --git a/pkg/compiler/lib/src/constants/constant_constructors.dart b/pkg/compiler/lib/src/constants/constant_constructors.dart |
index 996f8b13ccda1610f83e31fc6af7f7949235638d..7945601f13d6bf73096053f3dc8d083a824e1dc9 100644 |
--- a/pkg/compiler/lib/src/constants/constant_constructors.dart |
+++ b/pkg/compiler/lib/src/constants/constant_constructors.dart |
@@ -268,6 +268,18 @@ class ConstantConstructorComputer extends SemanticVisitor |
} |
@override |
+ ConstantExpression visitEquals(Send node, Node left, Node right, _) { |
+ return new BinaryConstantExpression( |
+ apply(left), BinaryOperator.EQ, apply(right)); |
+ } |
+ |
+ @override |
+ ConstantExpression visitNotEquals(Send node, Node left, Node right, _) { |
+ return new BinaryConstantExpression( |
+ apply(left), BinaryOperator.NOT_EQ, apply(right)); |
+ } |
+ |
+ @override |
ConstantExpression visitUnary( |
Send node, UnaryOperator operator, Node expression, _) { |
return new UnaryConstantExpression(operator, apply(expression)); |