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

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

Issue 2975053002: Encapsulate use of ast.Node in type_graph_nodes (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 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/inferrer/map_tracer.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c9b6c0a46493ce361af02ba1ea8cf3059ddaad76..a488288f1d75805bec30527d65db36990d91357b 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_dump.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_dump.dart
@@ -372,7 +372,7 @@ class _GraphGenerator extends TypeInformationVisitor {
}
void handleCall(CallSiteTypeInformation info, String text, Map inputs) {
- String sourceCode = shorten('${info.call}');
+ String sourceCode = shorten('${info.debugName}');
text = '$text\n$sourceCode';
if (info.arguments != null) {
for (int i = 0; i < info.arguments.positional.length; ++i) {
@@ -408,17 +408,17 @@ class _GraphGenerator extends TypeInformationVisitor {
}
void visitClosureTypeInformation(ClosureTypeInformation info) {
- String text = shorten('${info.node}');
+ String text = shorten('${info.debugName}');
addNode(info, 'Closure\n$text');
}
void visitAwaitTypeInformation(AwaitTypeInformation info) {
- String text = shorten('${info.node}');
+ String text = shorten('${info.debugName}');
addNode(info, 'Await\n$text');
}
void visitYieldTypeInformation(YieldTypeInformation info) {
- String text = shorten('${info.node}');
+ String text = shorten('${info.debugName}');
addNode(info, 'Yield\n$text');
}
}
« no previous file with comments | « pkg/compiler/lib/src/inferrer/map_tracer.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698