This repository was archived by the owner on Oct 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Attribute_Argument
mattt edited this page Mar 28, 2020
·
6 revisions
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: "🚫")
Codable
, Hashable
Creates an instance initialized with the given syntax node.
public init(_ node: AttributeSyntax)
var description: String
The argument name, if any.
let name: String?
The argument value.
let value: String
var description: String
Generated at 2020-08-02T12:14:07+0000 using swift-doc 1.0.0-beta.3.
Types
- AssociatedType
- Attribute
- Attribute.Argument
- Class
- ConditionalCompilationBlock
- ConditionalCompilationBlock.Branch
- DeclarationCollector
- Deinitializer
- Enumeration
- Enumeration.Case
- Extension
- Function
- Function.Parameter
- Function.Signature
- GenericParameter
- GenericRequirement
- GenericRequirement.Relation
- Import
- Initializer
- Modifier
- Operator
- Operator.Kind
- PrecedenceGroup
- PrecedenceGroup.Associativity
- PrecedenceGroup.Relation
- Protocol
- Structure
- Subscript
- Typealias
- Variable
- Variable.Accessor
- Variable.Accessor.Kind