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

Unified Diff: pkg/compiler/lib/src/js_backend/patch_resolver.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/js_backend/patch_resolver.dart
diff --git a/pkg/compiler/lib/src/js_backend/patch_resolver.dart b/pkg/compiler/lib/src/js_backend/patch_resolver.dart
index 521dd2dccba435e26b86b232c691e8445a3c5f26..17a4a4e33edba1d436a1fad8c427aafefde7e5e8 100644
--- a/pkg/compiler/lib/src/js_backend/patch_resolver.dart
+++ b/pkg/compiler/lib/src/js_backend/patch_resolver.dart
@@ -14,7 +14,12 @@ import '../elements/modelx.dart';
import '../tree/tree.dart';
class PatchResolverTask extends CompilerTask {
- PatchResolverTask(Compiler compiler) : super(compiler);
+ final Compiler compiler;
+ PatchResolverTask(Compiler compiler)
+ : compiler = compiler,
+ super(compiler.measurer);
+
+ DiagnosticReporter get reporter => compiler.reporter;
Resolution get resolution => compiler.resolution;

Powered by Google App Engine
This is Rietveld 408576698