Index: pkg/analyzer/lib/src/summary/summarize_elements.dart |
diff --git a/pkg/analyzer/lib/src/summary/summarize_elements.dart b/pkg/analyzer/lib/src/summary/summarize_elements.dart |
index 355397ab8fe3b91270335fcc1de3b501c8ca498e..d2a5c20c77beeec4922b6eca08790206d83edb20 100644 |
--- a/pkg/analyzer/lib/src/summary/summarize_elements.dart |
+++ b/pkg/analyzer/lib/src/summary/summarize_elements.dart |
@@ -553,11 +553,9 @@ class _CompilationUnitSerializer { |
String name = redirectedConstructor.name; |
int typeId = typeRef.reference; |
LinkedReference typeLinkedRef = linkedReferences[typeId]; |
- unlinkedReferences.add(new UnlinkedReferenceBuilder( |
- name: name, prefixReference: typeId)); |
- int refId = linkedReferences.length; |
- linkedReferences.add(new LinkedReferenceBuilder( |
- kind: ReferenceKind.constructor, unit: typeLinkedRef.unit)); |
+ int refId = serializeUnlinkedReference( |
+ name, ReferenceKind.constructor, |
+ unit: typeLinkedRef.unit, prefixReference: typeId); |
b.redirectedConstructor = new EntityRefBuilder( |
reference: refId, typeArguments: typeRef.typeArguments); |
} else { |