@@ -5243,7 +5243,7 @@ class ProtocolCompositionType final : public TypeBase,
52435243BEGIN_CAN_TYPE_WRAPPER (ProtocolCompositionType, Type)
52445244END_CAN_TYPE_WRAPPER(ProtocolCompositionType, Type)
52455245
5246- // / ParametrizedProtocolType - A type that constrains the primary associated
5246+ // / ParameterizedProtocolType - A type that constrains the primary associated
52475247// / type of a protocol to an argument type.
52485248// /
52495249// / Written like a bound generic type, eg Sequence<Int>.
@@ -5259,7 +5259,7 @@ END_CAN_TYPE_WRAPPER(ProtocolCompositionType, Type)
52595259// / \code
52605260// / T : Sequence where T.Element == Int.
52615261// / \endcode
5262- class ParametrizedProtocolType final : public TypeBase,
5262+ class ParameterizedProtocolType final : public TypeBase,
52635263 public llvm::FoldingSetNode {
52645264 friend struct ExistentialLayout ;
52655265
@@ -5294,18 +5294,18 @@ class ParametrizedProtocolType final : public TypeBase,
52945294
52955295 // Implement isa/cast/dyncast/etc.
52965296 static bool classof (const TypeBase *T) {
5297- return T->getKind () == TypeKind::ParametrizedProtocol ;
5297+ return T->getKind () == TypeKind::ParameterizedProtocol ;
52985298 }
52995299
53005300private:
5301- ParametrizedProtocolType (const ASTContext *ctx,
5302- ProtocolType *base, Type arg,
5303- RecursiveTypeProperties properties);
5301+ ParameterizedProtocolType (const ASTContext *ctx,
5302+ ProtocolType *base, Type arg,
5303+ RecursiveTypeProperties properties);
53045304};
5305- BEGIN_CAN_TYPE_WRAPPER (ParametrizedProtocolType , Type)
5305+ BEGIN_CAN_TYPE_WRAPPER (ParameterizedProtocolType , Type)
53065306 PROXY_CAN_TYPE_SIMPLE_GETTER(getBaseType)
53075307 PROXY_CAN_TYPE_SIMPLE_GETTER(getArgumentType)
5308- END_CAN_TYPE_WRAPPER(ParametrizedProtocolType , Type)
5308+ END_CAN_TYPE_WRAPPER(ParameterizedProtocolType , Type)
53095309
53105310// / An existential type, spelled with \c any .
53115311// /
@@ -6365,7 +6365,8 @@ inline bool TypeBase::isConstraintType() const {
63656365
63666366inline bool CanType::isConstraintTypeImpl (CanType type) {
63676367 return (isa<ProtocolType>(type) ||
6368- isa<ProtocolCompositionType>(type));
6368+ isa<ProtocolCompositionType>(type) ||
6369+ isa<ParameterizedProtocolType>(type));
63696370}
63706371
63716372inline bool TypeBase::isExistentialType () {
0 commit comments