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 acca51444046871ee54c34084d1f6a24b223deb1..67894b115c57fce78a10b05167744cce2b977bc2 100644 |
--- a/pkg/analyzer/lib/src/dart/analysis/file_state.dart |
+++ b/pkg/analyzer/lib/src/dart/analysis/file_state.dart |
@@ -367,6 +367,7 @@ class FileState { |
new fasta.Scope.top(isModifiable: true), |
uri); |
var parser = new fasta.Parser(astBuilder); |
+ astBuilder.parser = parser; |
parser.parseUnit(scanResult.tokens); |
var unit = astBuilder.pop() as CompilationUnit; |