SwiftSemantics Documentation Beta

Structure Attribute.​Argument

public struct Argument: Hashable, Codable

An attribute argument.

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: "🚫")
%3 Attribute.Argument Attribute.Argument Codable Codable Attribute.Argument->Codable Hashable Hashable Attribute.Argument->Hashable CustomStringConvertible CustomStringConvertible Attribute.Argument->CustomStringConvertible

Member Of

Attribute

A declaration attribute.

Conforms To

Codable
CustomStringConvertible
Hashable

Properties

name

let name: String?

The argument name, if any.

value

let value: String

The argument value.

description

var description: String