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

Unified Diff: pkg/front_end/test/precedence_info_test.dart

Issue 2903063003: update lazy assignment operators (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « pkg/front_end/lib/src/scanner/token.dart ('k') | pkg/front_end/test/scanner_fasta_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/test/precedence_info_test.dart
diff --git a/pkg/front_end/test/precedence_info_test.dart b/pkg/front_end/test/precedence_info_test.dart
index 8eb0cac01396b59700cd32be65f875427f85d349..d8722cc3220b7627782afd26531752136113e2bc 100644
--- a/pkg/front_end/test/precedence_info_test.dart
+++ b/pkg/front_end/test/precedence_info_test.dart
@@ -17,8 +17,7 @@ main() {
/// Assert that fasta PrecedenceInfo implements analyzer TokenType.
@reflectiveTest
class PrecedenceInfoTest {
- void assertInfo(check(String source, Token token),
- {bool includeLazyAssignmentOperators: true}) {
+ void assertInfo(check(String source, Token token)) {
void assertLexeme(String source) {
if (source == null || source.isEmpty) return;
var scanner = new StringScanner(source, includeComments: true);
@@ -36,10 +35,8 @@ class PrecedenceInfoTest {
assertLexeme('#!/'); // SCRIPT_TAG
assertLexeme('"foo"'); // STRING
assertLexeme('bar'); // IDENTIFIER
- if (includeLazyAssignmentOperators) {
- assertLexeme('&&=');
- assertLexeme('||=');
- }
+ assertLexeme('&&=');
+ assertLexeme('||=');
}
void test_isOperator() {
@@ -112,7 +109,9 @@ class PrecedenceInfoTest {
void test_isAssignmentOperator() {
const assignmentLexemes = const [
'&=',
+ '&&=',
'|=',
+ '||=',
'^=',
'=',
'>>=',
@@ -146,7 +145,7 @@ class PrecedenceInfoTest {
expect(
token.type.isAssociativeOperator, associativeLexemes.contains(source),
reason: source);
- }, includeLazyAssignmentOperators: false);
+ });
}
void test_isEqualityOperator() {
« no previous file with comments | « pkg/front_end/lib/src/scanner/token.dart ('k') | pkg/front_end/test/scanner_fasta_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698