| Index: pkg/compiler/lib/src/types/flat_type_mask.dart
|
| diff --git a/pkg/compiler/lib/src/types/flat_type_mask.dart b/pkg/compiler/lib/src/types/flat_type_mask.dart
|
| index ce6cd550f90280b9eee6c68bd7eb73c24070fda4..b93b1e63c642e19c9cb8407bf020b8023d976172 100644
|
| --- a/pkg/compiler/lib/src/types/flat_type_mask.dart
|
| +++ b/pkg/compiler/lib/src/types/flat_type_mask.dart
|
| @@ -573,10 +573,9 @@ class FlatTypeMask implements TypeMask {
|
| : (isSubclass ? ClassQuery.SUBCLASS : ClassQuery.SUBTYPE));
|
| }
|
|
|
| - Element locateSingleElement(Selector selector, Compiler compiler) {
|
| + Element locateSingleElement(Selector selector, ClosedWorld closedWorld) {
|
| if (isEmptyOrNull) return null;
|
| - Iterable<Element> targets =
|
| - compiler.closedWorld.allFunctions.filter(selector, this);
|
| + Iterable<Element> targets = closedWorld.allFunctions.filter(selector, this);
|
| if (targets.length != 1) return null;
|
| Element result = targets.first;
|
| ClassElement enclosing = result.enclosingClass.declaration;
|
| @@ -584,7 +583,6 @@ class FlatTypeMask implements TypeMask {
|
| // all classes in the receiver type [this]. It could be found only in a
|
| // subclass or in an inheritance-wise unrelated class in case of subtype
|
| // selectors.
|
| - ClosedWorld closedWorld = compiler.closedWorld;
|
| if (isSubtype) {
|
| // if (closedWorld.isUsedAsMixin(enclosing)) {
|
| if (closedWorld.everySubtypeIsSubclassOfOrMixinUseOf(base, enclosing)) {
|
|
|