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

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

Issue 3000763002: Implement .getCallType (Closed)
Patch Set: 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
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..dfd0120e86ce624f18f767aea5d3c180f96e48a7 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

Powered by Google App Engine
This is Rietveld 408576698