Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/world.dart |
| =================================================================== |
| --- sdk/lib/_internal/compiler/implementation/world.dart (revision 22106) |
| +++ sdk/lib/_internal/compiler/implementation/world.dart (working copy) |
| @@ -136,6 +136,14 @@ |
| : false; |
| } |
| + // Returns whether a superclass of [cls] mixes in [other]. |
|
kasperl
2013/04/29 10:27:21
Get rid of this helper again?
ngeoffray
2013/04/29 10:37:48
Done.
|
| + bool hasAnySuperclassThatMixes(ClassElement cls, ClassElement other) { |
| + Set<MixinApplicationElement> uses = mixinUses[other]; |
| + return (uses != null) |
| + ? uses.any((each) => cls.isSubclassOf(each)) |
| + : false; |
| + } |
| + |
| void registerUsedElement(Element element) { |
| if (element.isInstanceMember() && !element.isAbstract(compiler)) { |
| allFunctions.add(element); |