@@ -2822,7 +2822,7 @@ class GenericTypeDecl : public GenericContext, public TypeDecl {
28222822// / (opaque archetype 1))`.
28232823class OpaqueTypeDecl final :
28242824 public GenericTypeDecl,
2825- private llvm::TrailingObjects<OpaqueTypeDecl, OpaqueReturnTypeRepr *> {
2825+ private llvm::TrailingObjects<OpaqueTypeDecl, TypeRepr *> {
28262826 friend TrailingObjects;
28272827
28282828public:
@@ -2866,7 +2866,7 @@ class OpaqueTypeDecl final :
28662866 OpaqueTypeDecl (ValueDecl *NamingDecl, GenericParamList *GenericParams,
28672867 DeclContext *DC,
28682868 GenericSignature OpaqueInterfaceGenericSignature,
2869- ArrayRef<OpaqueReturnTypeRepr *> OpaqueReturnTypeReprs);
2869+ ArrayRef<TypeRepr *> OpaqueReturnTypeReprs);
28702870
28712871 unsigned getNumOpaqueReturnTypeReprs () const {
28722872 return NamingDeclAndHasOpaqueReturnTypeRepr.getInt ()
@@ -2883,7 +2883,7 @@ class OpaqueTypeDecl final :
28832883 ValueDecl *NamingDecl, GenericParamList *GenericParams,
28842884 DeclContext *DC,
28852885 GenericSignature OpaqueInterfaceGenericSignature,
2886- ArrayRef<OpaqueReturnTypeRepr *> OpaqueReturnTypeReprs);
2886+ ArrayRef<TypeRepr *> OpaqueReturnTypeReprs);
28872887
28882888 ValueDecl *getNamingDecl () const {
28892889 return NamingDeclAndHasOpaqueReturnTypeRepr.getPointer ();
@@ -2904,7 +2904,7 @@ class OpaqueTypeDecl final :
29042904 // / repr `repr`, as introduce implicitly by an occurrence of "some" in return
29052905 // / position e.g. `func f() -> some P`. Returns -1 if `repr` is not found.
29062906 Optional<unsigned > getAnonymousOpaqueParamOrdinal (
2907- OpaqueReturnTypeRepr *repr) const ;
2907+ TypeRepr *repr) const ;
29082908
29092909 GenericSignature getOpaqueInterfaceGenericSignature () const {
29102910 return OpaqueInterfaceGenericSignature;
@@ -2928,9 +2928,9 @@ class OpaqueTypeDecl final :
29282928
29292929 // / Retrieve the buffer containing the opaque return type
29302930 // / representations that correspond to the opaque generic parameters.
2931- ArrayRef<OpaqueReturnTypeRepr *> getOpaqueReturnTypeReprs () const {
2931+ ArrayRef<TypeRepr *> getOpaqueReturnTypeReprs () const {
29322932 return {
2933- getTrailingObjects<OpaqueReturnTypeRepr *>(),
2933+ getTrailingObjects<TypeRepr *>(),
29342934 getNumOpaqueReturnTypeReprs ()
29352935 };
29362936 }
@@ -3163,7 +3163,7 @@ class AbstractTypeParamDecl : public TypeDecl {
31633163// / \endcode
31643164class GenericTypeParamDecl final :
31653165 public AbstractTypeParamDecl,
3166- private llvm::TrailingObjects<GenericTypeParamDecl, OpaqueReturnTypeRepr *>{
3166+ private llvm::TrailingObjects<GenericTypeParamDecl, TypeRepr *>{
31673167 friend TrailingObjects;
31683168
31693169 size_t numTrailingObjects (OverloadToken<OpaqueReturnTypeRepr *>) const {
@@ -3180,7 +3180,7 @@ class GenericTypeParamDecl final :
31803180 // / \param nameLoc The location of the name.
31813181 GenericTypeParamDecl (DeclContext *dc, Identifier name, SourceLoc nameLoc,
31823182 bool isTypeSequence, unsigned depth, unsigned index,
3183- bool isOpaqueType, OpaqueReturnTypeRepr *opaqueTypeRepr );
3183+ bool isOpaqueType, TypeRepr *typeRepr );
31843184
31853185public:
31863186 // / Construct a new generic type parameter.
@@ -3201,7 +3201,7 @@ class GenericTypeParamDecl final :
32013201 static GenericTypeParamDecl *
32023202 create (DeclContext *dc, Identifier name, SourceLoc nameLoc,
32033203 bool isTypeSequence, unsigned depth, unsigned index,
3204- bool isOpaqueType, OpaqueReturnTypeRepr *opaqueTypeRepr );
3204+ bool isOpaqueType, TypeRepr *typeRepr );
32053205
32063206 // / The depth of this generic type parameter, i.e., the number of outer
32073207 // / levels of generic parameter lists that enclose this type parameter.
@@ -3249,11 +3249,11 @@ class GenericTypeParamDecl final :
32493249 // / extension, meaning that it was specified explicitly
32503250 // / - the enclosing declaration was deserialized, in which case it lost
32513251 // / the source location information and has no type representation.
3252- OpaqueReturnTypeRepr *getOpaqueTypeRepr () const {
3252+ TypeRepr *getOpaqueTypeRepr () const {
32533253 if (!isOpaqueType ())
32543254 return nullptr ;
32553255
3256- return *getTrailingObjects<OpaqueReturnTypeRepr *>();
3256+ return *getTrailingObjects<TypeRepr *>();
32573257 }
32583258
32593259 // / The index of this generic type parameter within its generic parameter
0 commit comments