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

Unified Diff: pkg/compiler/lib/src/elements/resolution_types.dart

Issue 2850143002: Reuse RuntimeTypesNeedBuilderImpl and _RuntimeTypesNeed for kernel based elements (Closed)
Patch Set: Fix comment Created 3 years, 8 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/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 9604f16263d263a85d885bf65d24cde12de6eb21..746011249fcc1d42b02ef7d0690487d1cc8781d3 100644
--- a/pkg/compiler/lib/src/elements/resolution_types.dart
+++ b/pkg/compiler/lib/src/elements/resolution_types.dart
@@ -1093,6 +1093,16 @@ class Types implements DartTypes {
return new Types(resolution);
}
+ @override
+ InterfaceType asInstanceOf(ResolutionInterfaceType type, ClassEntity cls) {
+ return type.asInstanceOf(cls);
+ }
+
+ @override
+ ResolutionInterfaceType getSupertype(ClassElement cls) {
+ return cls.supertype;
+ }
+
/// Flatten [type] by recursively removing enclosing `Future` annotations.
///
/// Defined in the language specification as:

Powered by Google App Engine
This is Rietveld 408576698