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

Unified Diff: pkg/front_end/lib/src/fasta/scanner/abstract_scanner.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/fasta/scanner/abstract_scanner.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart b/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart
index 0468576a6dc9bde1346aa82bb48ba9ea11b6bd56..c44507a9d4b63bf914ef3956c1703e4bced33eed 100644
--- a/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart
@@ -34,14 +34,6 @@ abstract class AbstractScanner implements Scanner {
bool scanGenericMethodComments = false;
/**
- * A flag indicating whether the lazy compound assignment operators '&&=' and
- * '||=' are enabled.
- */
- // TODO(paulberry): once lazyAssignmentOperators are fully supported by
- // Dart, remove this flag.
- bool scanLazyAssignmentOperators = false;
-
- /**
* The string offset for the next token that will be created.
*
* Note that in the [Utf8BytesScanner], [stringOffset] and [scanOffset] values
@@ -79,7 +71,6 @@ abstract class AbstractScanner implements Scanner {
final List<int> lineStarts;
AbstractScanner(this.includeComments, this.scanGenericMethodComments,
- this.scanLazyAssignmentOperators,
{int numberOfBytesHint})
: lineStarts = new LineStarts(numberOfBytesHint) {
this.tail = this.tokens;
@@ -499,7 +490,7 @@ abstract class AbstractScanner implements Scanner {
next = advance();
if (identical(next, $BAR)) {
next = advance();
- if (scanLazyAssignmentOperators && identical(next, $EQ)) {
+ if (identical(next, $EQ)) {
appendPrecedenceToken(TokenType.BAR_BAR_EQ);
return advance();
}
@@ -519,7 +510,7 @@ abstract class AbstractScanner implements Scanner {
next = advance();
if (identical(next, $AMPERSAND)) {
next = advance();
- if (scanLazyAssignmentOperators && identical(next, $EQ)) {
+ if (identical(next, $EQ)) {
appendPrecedenceToken(TokenType.AMPERSAND_AMPERSAND_EQ);
return advance();
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner.dart ('k') | pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698