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

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

Issue 2955353002: Split inference type-info accessors into members, parameters and local functions (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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 c1a19fa2839c1fd79e759b00efe85d2b2305fdeb..fa8c9ef86132887e4bd879b9cc837eadd2de0d8d 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_dump.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_dump.dart
@@ -153,7 +153,14 @@ class _GraphGenerator extends TypeInformationVisitor {
TypeInformation returnValue;
_GraphGenerator(this.global, this.element, this.output) {
- returnValue = global.inferrer.types.getInferredTypeOf(element);
+ if (element.isParameter) {
+ returnValue = global.inferrer.types.getInferredTypeOfParameter(element);
+ } else if (element.isLocal) {
+ returnValue =
+ global.inferrer.types.getInferredTypeOfLocalFunction(element);
+ } else {
+ returnValue = global.inferrer.types.getInferredTypeOfMember(element);
+ }
getNode(returnValue); // Ensure return value is part of graph.
append('digraph {');
}
« 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