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

Unified Diff: pkg/front_end/lib/src/fasta/scanner.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/front_end/lib/src/fasta/scanner.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner.dart b/pkg/front_end/lib/src/fasta/scanner.dart
index d265c8ffb770622e7cbfe4e3b921638d5a3f9331..7251d6c9697e7ad9eb45226b92e69f0ddc52a2b3 100644
--- a/pkg/front_end/lib/src/fasta/scanner.dart
+++ b/pkg/front_end/lib/src/fasta/scanner.dart
@@ -77,11 +77,13 @@ ScannerResult scan(List<int> bytes,
ScannerResult scanString(String source,
{bool includeComments: false,
bool scanGenericMethodComments: false,
+ bool scanLazyAssignmentOperators: false,
Recover recover}) {
assert(source != null, 'source must not be null');
StringScanner scanner = new StringScanner(source,
includeComments: includeComments,
- scanGenericMethodComments: scanGenericMethodComments);
+ scanGenericMethodComments: scanGenericMethodComments,
+ scanLazyAssignmentOperators: scanLazyAssignmentOperators);
return _tokenizeAndRecover(scanner, recover, source: source);
}

Powered by Google App Engine
This is Rietveld 408576698