Index: pkg/compiler/lib/src/serialization/modelz.dart |
diff --git a/pkg/compiler/lib/src/serialization/modelz.dart b/pkg/compiler/lib/src/serialization/modelz.dart |
index e0c60ba8b9a130cff42fcc1f4d91efb91440b61d..ea6752aad9bf045a3f46539153a0e65459164e74 100644 |
--- a/pkg/compiler/lib/src/serialization/modelz.dart |
+++ b/pkg/compiler/lib/src/serialization/modelz.dart |
@@ -1500,6 +1500,8 @@ class ForwardingConstructorElementZ extends ElementZ |
abstract class MemberElementMixin |
implements DeserializedElementZ, MemberElement { |
+ final List<FunctionElement> nestedClosures = <FunctionElement>[]; |
+ |
@override |
MemberElement get memberContext => this; |
@@ -1507,10 +1509,12 @@ abstract class MemberElementMixin |
Name get memberName => new Name(name, library); |
@override |
- List<FunctionElement> get nestedClosures => <FunctionElement>[]; |
+ bool get isInjected => _decoder.getBool(Key.IS_INJECTED); |
@override |
- bool get isInjected => _decoder.getBool(Key.IS_INJECTED); |
+ void forgetElement() { |
+ nestedClosures.clear(); |
+ } |
} |
abstract class FieldElementZ extends DeserializedElementZ |
@@ -1637,6 +1641,9 @@ abstract class LocalExecutableMixin |
Element get enclosingElement => executableContext; |
@override |
+ Element get enclosingClass => memberContext.enclosingClass; |
+ |
+ @override |
ExecutableElement get executableContext { |
if (_executableContext == null) { |
_executableContext = _decoder.getElement(Key.EXECUTABLE_CONTEXT); |