mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[serialization] Add support for ParenType.
This is a simple wrapper type. It was trivial to implement. Swift SVN r5682
This commit is contained in:
@@ -363,6 +363,13 @@ Type ModuleFile::getType(TypeID TID) {
|
||||
break;
|
||||
}
|
||||
|
||||
case decls_block::PAREN_TYPE: {
|
||||
TypeID underlyingID;
|
||||
decls_block::ParenTypeLayout::readRecord(scratch, underlyingID);
|
||||
typeOrOffset = ParenType::get(ModuleContext->Ctx, getType(underlyingID));
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
// We don't know how to deserialize this kind of type.
|
||||
error();
|
||||
|
||||
Reference in New Issue
Block a user