Introduce borrow and mutate as new accessor kinds

And handle them in various covered switches
This commit is contained in:
Meghana Gupta
2025-08-07 16:11:42 -07:00
parent 459a95888c
commit 9fe489ce22
34 changed files with 241 additions and 18 deletions

View File

@@ -357,6 +357,14 @@ UID_KINDS = [
'source.lang.swift.decl.function.accessor.init'),
KIND('RefAccessorInit',
'source.lang.swift.ref.function.accessor.init'),
KIND('DeclAccessorMutate',
'source.lang.swift.decl.function.accessor.mutate'),
KIND('RefAccessorMutate',
'source.lang.swift.ref.function.accessor.mutate'),
KIND('DeclAccessorBorrow',
'source.lang.swift.decl.function.accessor.borrow'),
KIND('RefAccessorBorrow',
'source.lang.swift.ref.function.accessor.borrow'),
KIND('DeclConstructor', 'source.lang.swift.decl.function.constructor'),
KIND('RefConstructor', 'source.lang.swift.ref.function.constructor'),
KIND('DeclDestructor', 'source.lang.swift.decl.function.destructor'),