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

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

Issue 2859133003: Find native classes with mixins in NativeClassFinder (Closed)
Patch Set: 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 | « pkg/compiler/lib/src/native/resolver.dart ('k') | tests/compiler/dart2js/kernel/closed_world2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/resolution_strategy.dart
diff --git a/pkg/compiler/lib/src/resolution/resolution_strategy.dart b/pkg/compiler/lib/src/resolution/resolution_strategy.dart
index a2c5e94cb449fee626951b20f00ece9cabda751f..a6b9268febbb426f5d48c8bd051baedaf092e4e8 100644
--- a/pkg/compiler/lib/src/resolution/resolution_strategy.dart
+++ b/pkg/compiler/lib/src/resolution/resolution_strategy.dart
@@ -306,9 +306,16 @@ class _CompilerElementEnvironment implements ElementEnvironment {
}
@override
- ClassEntity getSuperClass(ClassElement cls) {
+ ClassEntity getSuperClass(ClassElement cls,
+ {bool skipUnnamedMixinApplications: false}) {
cls.ensureResolved(_resolution);
- return cls.superclass;
+ ClassElement superclass = cls.superclass;
+ if (skipUnnamedMixinApplications) {
+ while (superclass != null && superclass.isUnnamedMixinApplication) {
+ superclass = superclass.superclass;
+ }
+ }
+ return superclass;
}
@override
« no previous file with comments | « pkg/compiler/lib/src/native/resolver.dart ('k') | tests/compiler/dart2js/kernel/closed_world2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698