Index: pkg/compiler/lib/src/parser/parser_task.dart |
diff --git a/pkg/compiler/lib/src/parser/parser_task.dart b/pkg/compiler/lib/src/parser/parser_task.dart |
index 6470d1f83386991b3063038c6fa6f8f0453061f6..02c37195b87c3fbb11fc2bd21ca971f11ee28773 100644 |
--- a/pkg/compiler/lib/src/parser/parser_task.dart |
+++ b/pkg/compiler/lib/src/parser/parser_task.dart |
@@ -19,8 +19,11 @@ import 'parser.dart' show Parser; |
class ParserTask extends CompilerTask { |
final ParserOptions parserOptions; |
+ final Compiler compiler; |
- ParserTask(Compiler compiler, this.parserOptions) : super(compiler); |
+ ParserTask(Compiler compiler, this.parserOptions) |
+ : compiler = compiler, |
+ super(compiler.measurer); |
String get name => 'Parser'; |
@@ -31,7 +34,7 @@ class ParserTask extends CompilerTask { |
Node parseCompilationUnit(Token token) { |
return measure(() { |
NodeListener listener = |
- new NodeListener(const ScannerOptions(), reporter, null); |
+ new NodeListener(const ScannerOptions(), compiler.reporter, null); |
Parser parser = new Parser(listener, parserOptions); |
try { |
parser.parseUnit(token); |