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 30
Enumeration_Case
mattt edited this page Mar 28, 2020
·
6 revisions
An enumeration case.
public struct Case: Declaration, Hashable, CodableCodable, Hashable, Declaration
Creates an instance initialized with the given syntax node.
public init?(_ node: EnumCaseElementSyntax)Creates an instance initialized with the given syntax node.
public init(_ node: EnumDeclSyntax)var description: Stringvar description: StringThe raw value of the enumeration case, if any.
let rawValue: String?The associated values of the enumeration case, if any.
let associatedValue: [Function.Parameter]?The enumeration case name.
let name: StringThe declaration modifiers.
let modifiers: [Modifier]The declaration keyword ("case").
let keyword: StringThe declaration attributes.
let attributes: [Attribute]Creates and returns enumeration cases from an enumeration case declaration.
public static func cases(from node: EnumCaseDeclSyntax) -> [Enumeration.Case]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