| 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 1e238d0b009c77a03ee77eb06a80fa891caa4df2..9bce67b5318ab88182fba5b3eb5fe21baf5b0b32 100644
|
| --- a/pkg/compiler/lib/src/common_elements.dart
|
| +++ b/pkg/compiler/lib/src/common_elements.dart
|
| @@ -1197,15 +1197,19 @@ abstract class ElementEnvironment {
|
|
|
| /// Returns the superclass of [cls].
|
| ///
|
| - /// Unnamed mixin applications are included, for instance for these classes
|
| + /// If [skipUnnamedMixinApplications] is `true`, unnamed mixin applications
|
| + /// are excluded, for instance for these classes
|
| ///
|
| /// class S {}
|
| /// class M {}
|
| /// class C extends S with M {}
|
| ///
|
| /// the result of `getSuperClass(C)` is the unnamed mixin application
|
| - /// typically named `S+M` and `getSuperClass(S+M)` is `S`.
|
| - ClassEntity getSuperClass(ClassEntity cls);
|
| + /// typically named `S+M` and `getSuperClass(S+M)` is `S`, whereas
|
| + /// the result of `getSuperClass(C, skipUnnamedMixinApplications: false)` is
|
| + /// `S`.
|
| + ClassEntity getSuperClass(ClassEntity cls,
|
| + {bool skipUnnamedMixinApplications: false});
|
|
|
| void forEachSupertype(ClassEntity cls, void f(InterfaceType supertype));
|
|
|
|
|