| Index: pkg/compiler/lib/src/serialization/impact_serialization.dart
|
| diff --git a/pkg/compiler/lib/src/serialization/impact_serialization.dart b/pkg/compiler/lib/src/serialization/impact_serialization.dart
|
| index e8ee514b68673c45724de56ff5d5dd54f8447f0e..c6ce2581275ce6bca17d520c04cf3194636f33c7 100644
|
| --- a/pkg/compiler/lib/src/serialization/impact_serialization.dart
|
| +++ b/pkg/compiler/lib/src/serialization/impact_serialization.dart
|
| @@ -78,6 +78,9 @@ class ImpactSerializer implements WorldImpactVisitor {
|
| object.setEnum(Key.KIND, staticUse.kind);
|
| serializeElementReference(
|
| element, Key.ELEMENT, Key.NAME, object, staticUse.element);
|
| + if (staticUse.type != null) {
|
| + object.setType(Key.TYPE, staticUse.type);
|
| + }
|
| }
|
|
|
| @override
|
| @@ -131,7 +134,8 @@ class ImpactDeserializer {
|
| StaticUseKind kind = object.getEnum(Key.KIND, StaticUseKind.values);
|
| Element usedElement =
|
| deserializeElementReference(element, Key.ELEMENT, Key.NAME, object);
|
| - staticUses.add(new StaticUse.internal(usedElement, kind));
|
| + DartType type = object.getType(Key.TYPE, isOptional: true);
|
| + staticUses.add(new StaticUse.internal(usedElement, kind, type));
|
| }
|
|
|
| ListDecoder dynamicUseDecoder = objectDecoder.getList(Key.DYNAMIC_USES);
|
|
|