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

Unified Diff: pkg/compiler/lib/src/inferrer/type_graph_dump.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
Index: pkg/compiler/lib/src/inferrer/type_graph_dump.dart
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_dump.dart b/pkg/compiler/lib/src/inferrer/type_graph_dump.dart
index a488288f1d75805bec30527d65db36990d91357b..336e31974dca1abdea54e9fd9597401d436e450f 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_dump.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_dump.dart
@@ -30,6 +30,7 @@ import 'debug.dart';
class TypeGraphDump {
static const String outputDir = 'typegraph';
+ final CompilerOutput compilerOutput;
final InferrerEngine inferrer;
final Map<TypeInformation, Set<TypeInformation>> assignmentsBeforeAnalysis =
<TypeInformation, Set<TypeInformation>>{};
@@ -37,7 +38,7 @@ class TypeGraphDump {
<TypeInformation, Set<TypeInformation>>{};
final Set<String> usedFilenames = new Set<String>();
- TypeGraphDump(this.inferrer);
+ TypeGraphDump(this.compilerOutput, this.inferrer);
/// Take a copy of the assignment set for each node, since that may change
/// during the analysis.
@@ -77,8 +78,8 @@ class TypeGraphDump {
OutputSink output;
try {
String name = filenameFromElement(element);
- output = inferrer.compiler
- .outputProvider('$outputDir/$name', 'dot', OutputType.debug);
+ output = compilerOutput.createOutputSink(
+ '$outputDir/$name', 'dot', OutputType.debug);
_GraphGenerator visitor = new _GraphGenerator(this, element, output);
for (TypeInformation node in nodes[element]) {
visitor.visit(node);
« no previous file with comments | « pkg/compiler/lib/src/inferrer/node_tracer.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698