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

Unified Diff: pkg/compiler/lib/src/common_elements.dart

Issue 2775283002: Use Entity in native_data. (Closed)
Patch Set: Fix. Created 3 years, 9 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/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common_elements.dart
diff --git a/pkg/compiler/lib/src/common_elements.dart b/pkg/compiler/lib/src/common_elements.dart
index 23206180802deecd1063bd05cb6d0a58a16a7732..3a817e5ad0365d0f21776143f75f3f5656877e38 100644
--- a/pkg/compiler/lib/src/common_elements.dart
+++ b/pkg/compiler/lib/src/common_elements.dart
@@ -249,6 +249,18 @@ abstract class ElementEnvironment {
void forEachClassMember(
ClassEntity cls, void f(ClassEntity declarer, MemberEntity member));
+ /// Returns the declared superclass of [cls].
+ ///
+ /// Unnamed mixin applications are skipped, for instance for these classes
+ ///
+ /// class S {}
+ /// class M {}
+ /// class C extends S with M {}
+ ///
+ /// the result of `getSuperClass(C)` is `S` and not the unnamed mixin
+ /// application typically named `S+M`.
+ ClassEntity getSuperClass(ClassEntity cls);
+
/// Calls [f] for each class that is mixed into [cls] or one of its
/// superclasses.
void forEachMixin(ClassEntity cls, void f(ClassEntity mixin));
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698