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

Variable_Accessor_Kind

mattt edited this page Mar 28, 2020 · 6 revisions

Variable.Accessor.Kind

The kind of accessor (get or set).

public enum Kind

Inheritance

Codable, Hashable, String

Initializers

init?(_:)

public init?(_ node: AccessorDeclSyntax)

init?(_:)

Creates an instance initialized with the given syntax node.

public init?(_ node: PatternBindingSyntax)

Properties

kind

The kind of accessor.

let kind: Kind?

attributes

The accessor attributes.

let attributes: [Attribute]

modifier

The accessor modifiers.

let modifier: Modifier?

description

var description: String

Methods

variables(from:)

Creates and returns variables from a variable declaration, which may contain one or more pattern bindings, such as let x: Int = 1, y: Int = 2.

public static func variables(from node: VariableDeclSyntax) -> [Variable]

accessors(from:)

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

Clone this wiki locally