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

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

Issue 2690063002: Refactor CompilerOutput (Closed)
Patch Set: Cleanup. Created 3 years, 10 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 1afa2d3e6d75ac28665bdc59ec04f463d08c9feb..5f786caa1fd25a65ebb33098e6e7a3134a082790 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_dump.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_dump.dart
@@ -3,8 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
library dart2js.inferrer.type_graph_dump;
-import 'dart:async';
-
+import '../../compiler_new.dart';
import '../elements/elements.dart';
import '../types/types.dart';
import 'inferrer_engine.dart';
@@ -73,10 +72,11 @@ class TypeGraphDump {
}
// Print every group separately.
for (Element element in nodes.keys) {
- EventSink<String> output;
+ OutputSink output;
try {
String name = filenameFromElement(element);
- output = inferrer.compiler.outputProvider('$outputDir/$name', 'dot');
+ output = inferrer.compiler
+ .outputProvider('$outputDir/$name', 'dot', OutputType.debug);
_GraphGenerator visitor = new _GraphGenerator(this, element, output);
for (TypeInformation node in nodes[element]) {
node.accept(visitor);
@@ -147,7 +147,7 @@ class _GraphGenerator extends TypeInformationVisitor {
final List<TypeInformation> worklist = new List<TypeInformation>();
final Map<TypeInformation, int> nodeId = <TypeInformation, int>{};
int usedIds = 0;
- final EventSink<String> output;
+ final OutputSink output;
final Element element;
TypeInformation returnValue;

Powered by Google App Engine
This is Rietveld 408576698