Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: pkg/analyzer/test/generated/all_the_rest_test.dart

Issue 2199323002: Initial implementation for lazy compound assignment operators (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/generated/all_the_rest_test.dart
diff --git a/pkg/analyzer/test/generated/all_the_rest_test.dart b/pkg/analyzer/test/generated/all_the_rest_test.dart
index 246750afdf1cfdc9a7cc2819e006605dcfcc48a0..63fdd854befdd57270075e8583cf841e8a7fd6b8 100644
--- a/pkg/analyzer/test/generated/all_the_rest_test.dart
+++ b/pkg/analyzer/test/generated/all_the_rest_test.dart
@@ -3324,6 +3324,11 @@ class ExitDetectorTest extends ParserTestCase {
_assertFalse("v = 1;");
}
+ void test_assignmentExpression_compound_lazy() {
+ enableLazyAssignmentOperators = true;
+ _assertFalse("v ||= false;");
+ }
+
void test_assignmentExpression_lhs_throw() {
_assertTrue("a[throw ''] = 0;");
}
@@ -3997,7 +4002,8 @@ on String catch (e, s) { return 1; }''');
}
void _assertHasReturn(bool expectedResult, String source) {
- Statement statement = ParserTestCase.parseStatement(source);
+ Statement statement = ParserTestCase.parseStatement(
+ source, [], enableLazyAssignmentOperators);
expect(ExitDetector.exits(statement), expectedResult);
}

Powered by Google App Engine
This is Rietveld 408576698