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

Unified Diff: pkg/analyzer/lib/src/fasta/token_utils.dart

Issue 2895803002: add fasta.scanner support for lazy assignment operators (Closed)
Patch Set: address comments 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/analyzer/lib/src/fasta/token_utils.dart
diff --git a/pkg/analyzer/lib/src/fasta/token_utils.dart b/pkg/analyzer/lib/src/fasta/token_utils.dart
index f5964ba791f55a61b457d34f2ece1d44f5257bc3..426d2c82f7f47e2654aaff3c75b4283499ecb820 100644
--- a/pkg/analyzer/lib/src/fasta/token_utils.dart
+++ b/pkg/analyzer/lib/src/fasta/token_utils.dart
@@ -321,7 +321,8 @@ Token fromAnalyzerToken(analyzer.Token token) {
return symbol(TokenType.AMPERSAND);
case TokenType.AMPERSAND_AMPERSAND:
return symbol(TokenType.AMPERSAND_AMPERSAND);
- // case TokenType.AMPERSAND_AMPERSAND_EQ
+ case TokenType.AMPERSAND_AMPERSAND_EQ:
+ return symbol(TokenType.AMPERSAND_AMPERSAND_EQ);
case TokenType.AMPERSAND_EQ:
return symbol(TokenType.AMPERSAND_EQ);
case TokenType.AT:
@@ -334,7 +335,8 @@ Token fromAnalyzerToken(analyzer.Token token) {
return symbol(TokenType.BAR);
case TokenType.BAR_BAR:
return symbol(TokenType.BAR_BAR);
- // case TokenType.BAR_BAR_EQ
+ case TokenType.BAR_BAR_EQ:
+ return symbol(TokenType.BAR_BAR_EQ);
case TokenType.BAR_EQ:
return symbol(TokenType.BAR_EQ);
case TokenType.COLON:

Powered by Google App Engine
This is Rietveld 408576698