Index: lib/compiler/implementation/enqueue.dart |
=================================================================== |
--- lib/compiler/implementation/enqueue.dart (revision 11792) |
+++ lib/compiler/implementation/enqueue.dart (working copy) |
@@ -75,6 +75,10 @@ |
bool get isResolutionQueue => compiler.enqueuer.resolution === this; |
TreeElements getCachedElements(Element element) { |
+ if (element.enclosingElement.isClosure()) { |
+ ClosureClassElement cls = element.enclosingElement; |
+ element = cls.methodElement; |
+ } |
Element owner = element.getOutermostEnclosingMemberOrTopLevel(); |
return compiler.enqueuer.resolution.resolvedElements[owner]; |
} |