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

Unified Diff: pkg/compiler/lib/src/inferrer/ast_inferrer_engine.dart

Issue 3004713002: Remove use of Compiler in inferrer engines. (Closed)
Patch Set: Created 3 years, 4 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
« no previous file with comments | « pkg/compiler/lib/src/dump_info.dart ('k') | pkg/compiler/lib/src/inferrer/inferrer_engine.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/ast_inferrer_engine.dart
diff --git a/pkg/compiler/lib/src/inferrer/ast_inferrer_engine.dart b/pkg/compiler/lib/src/inferrer/ast_inferrer_engine.dart
index 63f8c0fdc9ebf2bf0ab64c949d8dd6c272bc790c..6e8e11b81c59eda864aacb73d98e049e3fa281ab 100644
--- a/pkg/compiler/lib/src/inferrer/ast_inferrer_engine.dart
+++ b/pkg/compiler/lib/src/inferrer/ast_inferrer_engine.dart
@@ -19,9 +19,21 @@ import 'type_graph_nodes.dart';
import 'type_system.dart';
class AstInferrerEngine extends InferrerEngineImpl<ast.Node> {
- AstInferrerEngine(Compiler compiler, ClosedWorld closedWorld,
+ final Compiler compiler;
+
+ AstInferrerEngine(this.compiler, ClosedWorld closedWorld,
ClosedWorldRefiner closedWorldRefiner, FunctionEntity mainElement)
- : super(compiler, closedWorld, closedWorldRefiner, mainElement,
+ : super(
+ compiler.options,
+ compiler.progress,
+ compiler.reporter,
+ compiler.outputProvider,
+ compiler.backend.optimizerHints,
+ closedWorld,
+ closedWorldRefiner,
+ compiler.backend.mirrorsData,
+ compiler.backend.noSuchMethodRegistry,
+ mainElement,
const TypeSystemStrategyImpl());
GlobalTypeInferenceElementData<ast.Node> createElementData() =>
« no previous file with comments | « pkg/compiler/lib/src/dump_info.dart ('k') | pkg/compiler/lib/src/inferrer/inferrer_engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698