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 b39d715ea3587dc746d06872f3da9d40dd30172c..bd28c0e60c955e54c54e0dd2e235be88336a4b42 100644 |
--- a/pkg/compiler/lib/src/serialization/modelz.dart |
+++ b/pkg/compiler/lib/src/serialization/modelz.dart |
@@ -1233,6 +1233,14 @@ abstract class TypeDeclarationMixin<T extends GenericType> |
List<DartType> _typeVariables; |
T _rawType; |
T _thisType; |
+ Name _memberName; |
+ |
+ Name get memberName { |
+ if (_memberName == null) { |
+ _memberName = new Name(name, library); |
+ } |
+ return _memberName; |
+ } |
void _ensureTypes() { |
if (_typeVariables == null) { |
@@ -1318,10 +1326,18 @@ class TypeVariableElementZ extends DeserializedElementZ |
TypeDeclarationElement _typeDeclaration; |
TypeVariableType _type; |
DartType _bound; |
+ Name _memberName; |
TypeVariableElementZ(ObjectDecoder decoder) |
: super(decoder); |
+ Name get memberName { |
+ if (_memberName == null) { |
+ _memberName = new Name(name, library); |
+ } |
+ return _memberName; |
+ } |
+ |
@override |
ElementKind get kind => ElementKind.TYPE_VARIABLE; |