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

Unified Diff: pkg/compiler/lib/src/patch_parser.dart

Issue 2000323006: Make CompilerTask independent of compiler. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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/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

Powered by Google App Engine
This is Rietveld 408576698