Index: pkg/compiler/lib/src/patch_parser.dart |
diff --git a/pkg/compiler/lib/src/patch_parser.dart b/pkg/compiler/lib/src/patch_parser.dart |
index 9baaeb3542291f2ef9efd23bde2cf221047713b0..a2246c426a0d7c343881b78b499b4f31cb5cabe0 100644 |
--- a/pkg/compiler/lib/src/patch_parser.dart |
+++ b/pkg/compiler/lib/src/patch_parser.dart |
@@ -146,8 +146,12 @@ import 'tokens/token.dart' show StringToken, Token; |
class PatchParserTask extends CompilerTask { |
final String name = "Patching Parser"; |
final ParserOptions parserOptions; |
+ final Compiler compiler; |
+ DiagnosticReporter get reporter => compiler.reporter; |
- PatchParserTask(Compiler compiler, this.parserOptions) : super(compiler); |
+ PatchParserTask(Compiler compiler, this.parserOptions) |
+ : compiler = compiler, |
+ super(compiler.measurer); |
/** |
* Scans a library patch file, applies the method patches and |