Swift: Support new accessors

This commit is contained in:
Jeroen Ketema
2025-10-30 13:14:20 +01:00
parent 26f59a8786
commit b08b123184
12 changed files with 188 additions and 48 deletions

View File

@@ -315,6 +315,10 @@ class Accessor(AccessorOrNamedFunction):
is_modify: predicate | doc('this accessor is a `_modify` coroutine, yielding an inout value of the property')
is_unsafe_address: predicate | doc('this accessor is an `unsafeAddress` immutable addressor')
is_unsafe_mutable_address: predicate | doc('this accessor is an `unsafeMutableAddress` mutable addressor')
is_distributed_get: predicate | doc('this accessor is a distributed getter')
is_read2: predicate | doc('this accessor is a `read` coroutine, yielding a borrowed value of the property')
is_modify2: predicate | doc('this accessor is a `modify` coroutine, yielding an inout value of the property')
is_init: predicate | doc('this accessor is an `init` accessor')
class AssociatedTypeDecl(AbstractTypeParamDecl):
pass