Structure
Variable.Accessor
public struct Accessor: Hashable, Codable
A computed variable or computed property accessor.
Relationships
Member Of
Variable
A declaration for a property or a top-level variable or constant.
Nested Types
Variable.Accessor.Kind
The kind of accessor (
get
orset
).
Conforms To
ExpressibleBySyntax
A type that can be initialized with a Swift syntax node.
Codable
Hashable
Initializers
init?(_:)
public init?(_ node: AccessorDeclSyntax)
Properties
kind
let kind: Kind?
The kind of accessor.
Methods
accessors(from:)
public static func accessors(from node: AccessorBlockSyntax?) -> [Variable.Accessor]