Index: tests/compiler/dart2js/parser_test.dart |
diff --git a/tests/compiler/dart2js/parser_test.dart b/tests/compiler/dart2js/parser_test.dart |
index 4674201868bcb50e045d9a1cb0017d94bc0e6017..2ee3d9e729cd2d0c2a6796c5f55af5b2ddf15616 100644 |
--- a/tests/compiler/dart2js/parser_test.dart |
+++ b/tests/compiler/dart2js/parser_test.dart |
@@ -155,19 +155,23 @@ void testConditionalExpression() { |
} |
void testNullOperators() { |
- Expression node = parseStatement("a ?? b;").expression; |
+ ExpressionStatement statement = parseStatement("a ?? b;"); |
+ Expression node = statement.expression; |
Expect.isNotNull(node.asSend()); |
Expect.isTrue(node.asSend().isIfNull); |
- node = parseStatement("a ??= b;").expression; |
+ statement = parseStatement("a ??= b;"); |
+ node = statement.expression; |
Expect.isNotNull(node.asSendSet()); |
Expect.isTrue(node.asSendSet().isIfNullAssignment); |
- node = parseStatement("a?.b;").expression; |
+ statement = parseStatement("a?.b;"); |
+ node = statement.expression; |
Expect.isNotNull(node.asSend()); |
Expect.isTrue(node.asSend().isConditional); |
- node = parseStatement("a?.m();").expression; |
+ statement = parseStatement("a?.m();"); |
+ node = statement.expression; |
Expect.isNotNull(node.asSend()); |
Expect.isTrue(node.asSend().isConditional); |
} |