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

Unified Diff: pkg/compiler/lib/src/dump_info.dart

Issue 2777093010: Use entities in NoSuchMethodRegistry (Closed)
Patch Set: Move as cast. Created 3 years, 9 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 | « no previous file | 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/dump_info.dart
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart
index ba4b4aedd059348593494e07d57494d6bf7a0bd1..280a50c6da8c1f94d89ae17828c6c0be91688656 100644
--- a/pkg/compiler/lib/src/dump_info.dart
+++ b/pkg/compiler/lib/src/dump_info.dart
@@ -118,10 +118,18 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
return info;
}
- _resultOf(e) => compiler.globalInference.results.resultOf(e);
+ _resultOfMember(MemberElement e) =>
+ compiler.globalInference.results.resultOfMember(e);
+
+ _resultOfParameter(ParameterElement e) =>
+ compiler.globalInference.results.resultOfParameter(e);
+
+ @deprecated
+ _resultOfElement(AstElement e) =>
+ compiler.globalInference.results.resultOfElement(e);
FieldInfo visitFieldElement(FieldElement element, _) {
- TypeMask inferredType = _resultOf(element).type;
+ TypeMask inferredType = _resultOfMember(element).type;
// If a field has an empty inferred type it is never used.
if (inferredType == null || inferredType.isEmpty) return null;
@@ -258,7 +266,7 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
FunctionSignature signature = element.functionSignature;
signature.forEachParameter((parameter) {
parameters.add(new ParameterInfo(parameter.name,
- '${_resultOf(parameter).type}', '${parameter.node.type}'));
+ '${_resultOfParameter(parameter).type}', '${parameter.node.type}'));
});
}
@@ -269,7 +277,7 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
closedWorld.allFunctions.contains(element as MemberElement)) {
returnType = '${element.type.returnType}';
}
- String inferredReturnType = '${_resultOf(element).returnType}';
+ String inferredReturnType = '${_resultOfElement(element).returnType}';
String sideEffects = '${closedWorld.getSideEffectsOfElement(element)}';
int inlinedCount = compiler.dumpInfoTask.inlineCount[element];
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/type_graph_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698