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
Variable
mattt edited this page Jan 22, 2020
·
9 revisions
A declaration for a property or a top-level variable or constant.
public struct Variable: Declaration, Hashable, CodableDeclaration, Hashable, Codable, CustomStringConvertible, ExpressibleBySyntax
Creates an instance initialized with the given syntax node.
@available(swift, introduced: 0.0.1, deprecated: 0.0.1, message: "Use Variable.variables(from:) instead") public init(_ node: VariableDeclSyntax)let context: String?The declaration attributes.
let attributes: [Attribute]The declaration modifiers.
let modifiers: [Modifier]The declaration keyword ("let" or "var").
let keyword: StringThe name of the property or top-level variable or constant.
let name: StringThe type annotation for the declaration, if any.
let typeAnnotation: String?The initialized value for the declaration, if any.
let initializedValue: String?The variable or property accessors.
let accessors: [Accessor]var description: Stringpublic static func variables(from node: VariableDeclSyntax) -> [Variable]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