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

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

Issue 2804993002: Extract ResolutionWorldBuilderBase from ElementResolutionWorldBuilder (Closed)
Patch Set: Fix. 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
« no previous file with comments | « pkg/compiler/lib/src/common_elements.dart ('k') | pkg/compiler/lib/src/elements/entities.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index 2a2fa48bc45a34892563049b25d2bbf3b0838c3b..68df7fd2dc5d733419fdbdf6ae10b851f14be2be 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -1894,12 +1894,12 @@ class _CompilerElementEnvironment implements ElementEnvironment {
}
@override
- ClassEntity getSuperClass(ClassElement cls) {
- cls = cls.superclass;
- while (cls != null && cls.isUnnamedMixinApplication) {
- cls = cls.superclass;
- }
- return cls;
+ ClassEntity getSuperClass(ClassElement cls) => cls.superclass;
+
+ @override
+ void forEachSupertype(
+ ClassElement cls, void f(ResolutionInterfaceType supertype)) {
+ cls.allSupertypes.forEach((ResolutionDartType supertype) => f(supertype));
}
@override
« no previous file with comments | « pkg/compiler/lib/src/common_elements.dart ('k') | pkg/compiler/lib/src/elements/entities.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698