@@ -3215,32 +3215,6 @@ class TypeDecl : public ValueDecl {
3215
3215
};
3216
3216
};
3217
3217
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
-
3244
3218
static bool classof (const Decl *D) {
3245
3219
return D->getKind () >= DeclKind::First_TypeDecl &&
3246
3220
D->getKind () <= DeclKind::Last_TypeDecl;
@@ -3258,7 +3232,7 @@ class TypeDecl : public ValueDecl {
3258
3232
}
3259
3233
};
3260
3234
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
3262
3236
// / it has these generic parameters, it is always a DeclContext.
3263
3237
class GenericTypeDecl : public GenericContext , public TypeDecl {
3264
3238
public:
@@ -4374,6 +4348,26 @@ class NominalTypeDecl : public GenericTypeDecl, public IterableDeclContext {
4374
4348
// / Returns null if the type is a class, or does not have a declared `deinit`.
4375
4349
DestructorDecl *getValueTypeDestructor ();
4376
4350
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
+
4377
4371
// / Determine whether this type has `: <target>` stated explicitly in
4378
4372
// / its inheritance clause.
4379
4373
bool hasMarking (InvertibleProtocolKind target) const ;
0 commit comments