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]; |