Index: pkg/compiler/lib/src/ssa/types.dart |
diff --git a/pkg/compiler/lib/src/ssa/types.dart b/pkg/compiler/lib/src/ssa/types.dart |
index 720545b9f7177c284c940587b54208b41dcabb12..9ebbc552ae4aece8bb82bfbaf856baa38f01aa01 100644 |
--- a/pkg/compiler/lib/src/ssa/types.dart |
+++ b/pkg/compiler/lib/src/ssa/types.dart |
@@ -12,13 +12,19 @@ import '../world.dart' show ClosedWorld; |
class TypeMaskFactory { |
static TypeMask inferredReturnTypeForElement( |
MethodElement element, GlobalTypeInferenceResults results) { |
- return results.resultOf(element).returnType ?? |
+ return results.resultOfMember(element).returnType ?? |
results.closedWorld.commonMasks.dynamicType; |
} |
- static TypeMask inferredTypeForElement( |
- Element element, GlobalTypeInferenceResults results) { |
- return results.resultOf(element).type ?? |
+ static TypeMask inferredTypeForMember( |
+ MemberElement element, GlobalTypeInferenceResults results) { |
+ return results.resultOfMember(element).type ?? |
+ results.closedWorld.commonMasks.dynamicType; |
+ } |
+ |
+ static TypeMask inferredTypeForParameter( |
+ ParameterElement element, GlobalTypeInferenceResults results) { |
+ return results.resultOfParameter(element).type ?? |
results.closedWorld.commonMasks.dynamicType; |
} |