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

Attribute_Argument

mattt edited this page Mar 28, 2020 · 6 revisions

Attribute.Argument

An attribute argument.

public struct Argument: Hashable, Codable

Certain attributes take one or more arguments, each of which have a value and optional name. For example, the following attribute declaration has three arguments:

@available(*, unavailable, message: "🚫")

Inheritance

Codable, Hashable

Initializers

init(_:)

Creates an instance initialized with the given syntax node.

public init(_ node: AttributeSyntax)

Properties

description

var description: String

name

The argument name, if any.

let name: String?

value

The argument value.

let value: String

description

var description: String
Clone this wiki locally