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

Unified Diff: pkg/front_end/lib/src/scanner/token.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
Index: pkg/front_end/lib/src/scanner/token.dart
diff --git a/pkg/front_end/lib/src/scanner/token.dart b/pkg/front_end/lib/src/scanner/token.dart
index aa2a041bb3f0bc26adbed0db4231af7178df6cda..ec38b9ce0b59ba14ed871226fd850254c2450e29 100644
--- a/pkg/front_end/lib/src/scanner/token.dart
+++ b/pkg/front_end/lib/src/scanner/token.dart
@@ -1109,8 +1109,12 @@ class TokenType {
isOperator: true);
// This is not yet part of the language and not supported by fasta
- static const TokenType AMPERSAND_AMPERSAND_EQ =
- const TokenType('&&=', 'AMPERSAND_AMPERSAND_EQ', 1, -1);
+ static const TokenType AMPERSAND_AMPERSAND_EQ = const TokenType(
+ '&&=',
+ 'AMPERSAND_AMPERSAND_EQ',
+ ASSIGNMENT_PRECEDENCE,
+ AMPERSAND_AMPERSAND_EQ_TOKEN,
+ isOperator: true);
static const TokenType AMPERSAND_EQ = const TokenType(
'&=', 'AMPERSAND_EQ', ASSIGNMENT_PRECEDENCE, AMPERSAND_EQ_TOKEN,
@@ -1139,8 +1143,9 @@ class TokenType {
isOperator: true);
// This is not yet part of the language and not supported by fasta
- static const TokenType BAR_BAR_EQ =
- const TokenType('||=', 'BAR_BAR_EQ', 1, -1);
+ static const TokenType BAR_BAR_EQ = const TokenType(
+ '||=', 'BAR_BAR_EQ', ASSIGNMENT_PRECEDENCE, BAR_BAR_EQ_TOKEN,
+ isOperator: true);
static const TokenType BAR_EQ = const TokenType(
'|=', 'BAR_EQ', ASSIGNMENT_PRECEDENCE, BAR_EQ_TOKEN,
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/utf8_bytes_scanner.dart ('k') | pkg/front_end/test/precedence_info_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698