@@ -3215,32 +3215,6 @@ class TypeDecl : public ValueDecl {
32153215 };
32163216 };
32173217
3218- // / "Does a conformance for Copyable exist for this type declaration?"
3219- // /
3220- // / This doesn't mean that all instance of this type are Copyable, because
3221- // / if a conditional conformance to Copyable exists, this method will return
3222- // / true.
3223- // /
3224- // / If you need a more precise answer, ask this Decl's corresponding
3225- // / Type if it `isCopyable` instead of using this.
3226- CanBeInvertible::Result canBeCopyable () const ;
3227-
3228- // / "Does a conformance for Escapable exist for this type declaration?"
3229- // /
3230- // / This doesn't mean that all instance of this type are Escapable, because
3231- // / if a conditional conformance to Escapable exists, this method will return
3232- // / true.
3233- // /
3234- // / If you need a more precise answer, ask this Decl's corresponding
3235- // / Type if it `isEscapable` instead of using this.
3236- CanBeInvertible::Result canBeEscapable () const ;
3237-
3238- InverseMarking::Mark hasInverseMarking (InvertibleProtocolKind target) const ;
3239-
3240- // / Determine how the given invertible protocol was written on this TypeDecl,
3241- // / if at all.
3242- InverseMarking getMarking (InvertibleProtocolKind ip) const ;
3243-
32443218 static bool classof (const Decl *D) {
32453219 return D->getKind () >= DeclKind::First_TypeDecl &&
32463220 D->getKind () <= DeclKind::Last_TypeDecl;
@@ -3258,7 +3232,7 @@ class TypeDecl : public ValueDecl {
32583232 }
32593233};
32603234
3261- // / A type declaration that can have generic parameters attached to it. Because
3235+ // / A type declaration that have generic parameters attached to it. Because
32623236// / it has these generic parameters, it is always a DeclContext.
32633237class GenericTypeDecl : public GenericContext , public TypeDecl {
32643238public:
@@ -4374,6 +4348,26 @@ class NominalTypeDecl : public GenericTypeDecl, public IterableDeclContext {
43744348 // / Returns null if the type is a class, or does not have a declared `deinit`.
43754349 DestructorDecl *getValueTypeDestructor ();
43764350
4351+ // / "Does a conformance for Copyable exist for this type declaration?"
4352+ // /
4353+ // / This doesn't mean that all instance of this type are Copyable, because
4354+ // / if a conditional conformance to Copyable exists, this method will return
4355+ // / true.
4356+ // /
4357+ // / If you need a more precise answer, ask this Decl's corresponding
4358+ // / Type if it `isCopyable` instead of using this.
4359+ CanBeInvertible::Result canBeCopyable () const ;
4360+
4361+ // / "Does a conformance for Escapable exist for this type declaration?"
4362+ // /
4363+ // / This doesn't mean that all instance of this type are Escapable, because
4364+ // / if a conditional conformance to Escapable exists, this method will return
4365+ // / true.
4366+ // /
4367+ // / If you need a more precise answer, ask this Decl's corresponding
4368+ // / Type if it `isEscapable` instead of using this.
4369+ CanBeInvertible::Result canBeEscapable () const ;
4370+
43774371 // / Determine whether this type has `: <target>` stated explicitly in
43784372 // / its inheritance clause.
43794373 bool hasMarking (InvertibleProtocolKind target) const ;
0 commit comments