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

Unified Diff: pkg/compiler/lib/src/ssa/types.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 | « pkg/compiler/lib/src/ssa/optimize.dart ('k') | pkg/compiler/lib/src/types/types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/optimize.dart ('k') | pkg/compiler/lib/src/types/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698