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

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

Issue 2954493002: Less inequivalence on Hello World! (Closed)
Patch Set: Fix Created 3 years, 6 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/types.dart
diff --git a/pkg/compiler/lib/src/elements/types.dart b/pkg/compiler/lib/src/elements/types.dart
index 260ab3479c47f6818eeaaa4fdf92a5b92a22c1f6..71faca306f9dbc1b667f93a06312ed83fe1a4f48 100644
--- a/pkg/compiler/lib/src/elements/types.dart
+++ b/pkg/compiler/lib/src/elements/types.dart
@@ -789,6 +789,9 @@ abstract class DartTypes {
/// Returns all supertypes of [cls].
Iterable<InterfaceType> getSupertypes(ClassEntity cls);
+ /// Returns all types directly implemented by [cls].
+ Iterable<InterfaceType> getInterfaces(ClassEntity cls);
+
/// Returns the type of the `call` method on [type], or `null` if the class
/// of [type] does not have a `call` method.
FunctionType getCallType(InterfaceType type);

Powered by Google App Engine
This is Rietveld 408576698