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

Unified Diff: pkg/compiler/lib/src/closure.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/closure.dart
diff --git a/pkg/compiler/lib/src/closure.dart b/pkg/compiler/lib/src/closure.dart
index 5d5b1287a8aa534baf7e9281ee672544e3edbb3a..b0f01b8058020f2b92f6e7ec2bbe75c666ff0adf 100644
--- a/pkg/compiler/lib/src/closure.dart
+++ b/pkg/compiler/lib/src/closure.dart
@@ -24,12 +24,16 @@ import 'universe/universe.dart' show Universe;
class ClosureTask extends CompilerTask {
Map<Node, ClosureClassMap> closureMappingCache;
+ Compiler compiler;
ClosureTask(Compiler compiler)
: closureMappingCache = new Map<Node, ClosureClassMap>(),
- super(compiler);
+ compiler = compiler,
+ super(compiler.measurer);
String get name => "Closure Simplifier";
+ DiagnosticReporter get reporter => compiler.reporter;
+
ClosureClassMap computeClosureToClassMapping(ResolvedAst resolvedAst) {
return measure(() {
Element element = resolvedAst.element;

Powered by Google App Engine
This is Rietveld 408576698