Accessor

public struct Accessor : Hashable, Codable
extension Variable.Accessor: ExpressibleBySyntax

A computed variable or computed property accessor.

  • The kind of accessor (get or set).

    See more

    Declaration

    Swift

    public enum Kind : String, Hashable, Codable
  • The accessor attributes.

    Declaration

    Swift

    public let attributes: [Attribute]
  • The accessor modifiers.

    Declaration

    Swift

    public let modifier: Modifier?
  • The kind of accessor.

    Declaration

    Swift

    public let kind: Kind?

ExpressibleBySyntax

  • Undocumented

    Declaration

    Swift

    public static func accessors(from node: AccessorBlockSyntax?) -> [Variable.Accessor]
  • Creates an instance initialized with the given syntax node.

    Declaration

    Swift

    @available(swift, introduced: 0.0.1, deprecated: 0.0.1, message: "Use Variable.Accessor.accessors(from:﹚ instead")
    public init(_ node: AccessorDeclSyntax)