mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
implement parser and AST support for trivial (empty) protocol types.
Swift SVN r652
This commit is contained in:
@@ -175,3 +175,12 @@ ArrayType::ArrayType(Type base, uint64_t size)
|
||||
Base(base), Size(size) {}
|
||||
|
||||
|
||||
|
||||
ProtocolType *ProtocolType::get(ASTContext &C) {
|
||||
return new (C) ProtocolType();
|
||||
}
|
||||
|
||||
ProtocolType::ProtocolType()
|
||||
: TypeBase(TypeKind::Protocol, this) {}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user