Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/world.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/world.dart b/sdk/lib/_internal/compiler/implementation/world.dart |
| index 271629bf64132666df45a3b3aba08074886ca86e..f3142f6f94060c9a4e2e49995782b59b13a89cbd 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/world.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/world.dart |
| @@ -130,6 +130,14 @@ class World { |
| return subclasses.contains(type.element); |
| } |
| + // Returns whether a subclass of [superclass] mixes in [other]. |
| + bool hasAnySubclassThatMixes(ClassElement superclass, ClassElement other) { |
| + Set<MixinApplicationElement> uses = mixinUses[other]; |
| + return (uses != null) |
|
Lasse Reichstein Nielsen
2013/02/21 09:32:05
x ? y : false => x && y
|
| + ? uses.any((each) => each.isSubclassOf(superclass)) |
| + : false; |
| + } |
| + |
| void registerUsedElement(Element element) { |
| if (element.isInstanceMember() && !element.isAbstract(compiler)) { |
| allFunctions.add(element); |