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

Unified Diff: pkg/analyzer/lib/src/dart/analysis/file_state.dart

Issue 2777613002: Include comments when parsing with Fasta in file_state. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/analysis/file_state.dart
diff --git a/pkg/analyzer/lib/src/dart/analysis/file_state.dart b/pkg/analyzer/lib/src/dart/analysis/file_state.dart
index b4fb3595ddde3ef527f8aad0143cef2466a776d6..7f6050effffe729d866cacf1a53012d822e2f947 100644
--- a/pkg/analyzer/lib/src/dart/analysis/file_state.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/file_state.dart
@@ -357,7 +357,8 @@ class FileState {
if (USE_FASTA_PARSER) {
try {
- fasta.ScannerResult scanResult = fasta.scan(_contentBytes);
+ fasta.ScannerResult scanResult =
+ fasta.scan(_contentBytes, includeComments: true);
var astBuilder = new fasta.AstBuilder(
new ErrorReporter(errorListener, source),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698