Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Variable_Accessor

mattt edited this page Jan 22, 2020 · 5 revisions

Variable.Accessor

A computed variable or computed property accessor.

public struct Accessor: Hashable, Codable

Inheritance

Hashable, Codable, ExpressibleBySyntax


Nested Types


Initializers

init(_:)

Creates an instance initialized with the given syntax node.

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

Properties

attributes

The accessor attributes.

let attributes: [Attribute]

modifier

The accessor modifiers.

let modifier: Modifier?

kind

The kind of accessor.

let kind: Kind?

Methods

accessors(from:)

public static func accessors(from node: AccessorBlockSyntax?) -> [Variable.Accessor]
Clone this wiki locally