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

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

Issue 2884233002: Use entities in runtime_types (Closed)
Patch Set: Updated cf. comments Created 3 years, 7 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 50afb00b0c606024d7d4d550d1f6c24ccca5dc58..8e17ea8171e49eae36653b222954053088353099 100644
--- a/pkg/compiler/lib/src/kernel/types.dart
+++ b/pkg/compiler/lib/src/kernel/types.dart
@@ -36,11 +36,22 @@ class _KernelDartTypes implements DartTypes {
}
@override
+ Iterable<InterfaceType> getSupertypes(ClassEntity cls) {
+ return elementMap._getOrderedTypeSet(cls).supertypes;
+ }
+
+ @override
InterfaceType asInstanceOf(InterfaceType type, ClassEntity cls) {
return elementMap._asInstanceOf(type, cls);
}
@override
+ FunctionType getCallType(InterfaceType type) {
+ // TODO(johnniwinther): Compute the call type.
+ throw new UnimplementedError('_KernelDartTypes.getCallType');
+ }
+
+ @override
CommonElements get commonElements => elementMap.commonElements;
}
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_strategy.dart ('k') | pkg/compiler/lib/src/resolution/resolution_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698