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

Unified Diff: pkg/compiler/lib/src/elements/resolution_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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/elements/resolution_types.dart
diff --git a/pkg/compiler/lib/src/elements/resolution_types.dart b/pkg/compiler/lib/src/elements/resolution_types.dart
index 5cd27d3dc7c2ddcf04946454dea1195a20be9dfd..19b67aa0b1353456eed31f73e2eb87e73eca40dd 100644
--- a/pkg/compiler/lib/src/elements/resolution_types.dart
+++ b/pkg/compiler/lib/src/elements/resolution_types.dart
@@ -1104,6 +1104,16 @@ class Types implements DartTypes {
return cls.supertype;
}
+ @override
+ Iterable<InterfaceType> getSupertypes(ClassElement cls) {
+ assert(invariant(cls, cls.allSupertypes != null,
+ message: 'Supertypes have not been computed for $cls.'));
+ return cls.allSupertypes;
+ }
+
+ @override
+ FunctionType getCallType(ResolutionInterfaceType type) => type.callType;
+
/// Flatten [type] by recursively removing enclosing `Future` annotations.
///
/// Defined in the language specification as:
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698