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

Unified Diff: pkg/compiler/lib/src/kernel/types.dart

Issue 3000763002: Implement .getCallType (Closed)
Patch Set: The fix Created 3 years, 4 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/kernel/env.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/types.dart
diff --git a/pkg/compiler/lib/src/kernel/types.dart b/pkg/compiler/lib/src/kernel/types.dart
index 14fd6049fd9b389729f0499365cea5b57d17bfb8..8a46be3364f0e9bf3b1ce68d54b699ee6df54bcf 100644
--- a/pkg/compiler/lib/src/kernel/types.dart
+++ b/pkg/compiler/lib/src/kernel/types.dart
@@ -62,8 +62,8 @@ class _KernelDartTypes extends DartTypes {
@override
FunctionType getCallType(InterfaceType type) {
- // TODO(redemption): Compute the call type.
- return null;
+ DartType callType = elementMap._getCallType(type);
+ return callType is FunctionType ? callType : null;
}
@override
@@ -119,7 +119,7 @@ abstract class _AbstractTypeRelationMixin
@override
FunctionType getCallType(InterfaceType type) {
// TODO(redemption): Compute the call type.
- return null;
+ return elementMap._getCallType(type);
}
@override
« no previous file with comments | « pkg/compiler/lib/src/kernel/env.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698