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

Unified Diff: pkg/analyzer/lib/src/dart/scanner/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/analyzer/lib/src/dart/scanner/scanner.dart
diff --git a/pkg/analyzer/lib/src/dart/scanner/scanner.dart b/pkg/analyzer/lib/src/dart/scanner/scanner.dart
index 77c84c92e8a4bad20d4b818b6a1c2a0dc6da9947..1a78ccfb4bbeaa183e99182fd1e6337cf7c76625 100644
--- a/pkg/analyzer/lib/src/dart/scanner/scanner.dart
+++ b/pkg/analyzer/lib/src/dart/scanner/scanner.dart
@@ -147,8 +147,9 @@ class _Scanner2 implements Scanner {
// TODO(danrubel): remove this once fasts support has been added.
throw 'No generic method comment support in Fasta';
}
- fasta.ScannerResult result =
- fasta.scanString(_contents, includeComments: _preserveComments);
+ fasta.ScannerResult result = fasta.scanString(_contents,
+ includeComments: _preserveComments,
+ scanLazyAssignmentOperators: scanLazyAssignmentOperators);
// fasta pretends there is an additional line at EOF
lineStarts
.addAll(result.lineStarts.sublist(1, result.lineStarts.length - 1));
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/fasta/token_utils.dart » ('j') | pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698