mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Introduce PackElementType
This commit is contained in:
@@ -5068,6 +5068,14 @@ public:
|
||||
S.addTypeRef(expansionTy->getCountType()));
|
||||
}
|
||||
|
||||
void visitPackElementType(const PackElementType *elementType) {
|
||||
using namespace decls_block;
|
||||
unsigned abbrCode = S.DeclTypeAbbrCodes[PackElementTypeLayout::Code];
|
||||
PackElementTypeLayout::emitRecord(S.Out, S.ScratchRecord, abbrCode,
|
||||
S.addTypeRef(elementType->getPackType()),
|
||||
elementType->getLevel());
|
||||
}
|
||||
|
||||
void visitPackType(const PackType *packTy) {
|
||||
using namespace decls_block;
|
||||
unsigned abbrCode = S.DeclTypeAbbrCodes[PackTypeLayout::Code];
|
||||
|
||||
Reference in New Issue
Block a user