mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Implement default definitions for associated types.
Addresses <rdar://problem/14292873>. Swift SVN r11422
This commit is contained in:
@@ -1130,12 +1130,14 @@ void Serializer::writeDecl(const Decl *D) {
|
||||
const Decl *DC = getDeclForContext(assocType->getDeclContext());
|
||||
|
||||
unsigned abbrCode = DeclTypeAbbrCodes[AssociatedTypeDeclLayout::Code];
|
||||
AssociatedTypeDeclLayout::emitRecord(Out, ScratchRecord, abbrCode,
|
||||
addIdentifierRef(assocType->getName()),
|
||||
addDeclRef(DC),
|
||||
addTypeRef(assocType->getSuperclass()),
|
||||
addTypeRef(assocType->getArchetype()),
|
||||
assocType->isImplicit());
|
||||
AssociatedTypeDeclLayout::emitRecord(
|
||||
Out, ScratchRecord, abbrCode,
|
||||
addIdentifierRef(assocType->getName()),
|
||||
addDeclRef(DC),
|
||||
addTypeRef(assocType->getSuperclass()),
|
||||
addTypeRef(assocType->getArchetype()),
|
||||
addTypeRef(assocType->getDefaultDefinitionType()),
|
||||
assocType->isImplicit());
|
||||
|
||||
writeConformances(assocType->getProtocols(),
|
||||
assocType->getConformances(),
|
||||
|
||||
Reference in New Issue
Block a user