-
Notifications
You must be signed in to change notification settings - Fork 31
Enumeration_Case
An enumeration case.
public struct Case: Declaration, Hashable, CodableCodable, Hashable, Declaration
Creates an instance initialized with the given syntax node.
public init(_ node: EnumDeclSyntax)private init?(element node: EnumCaseElementSyntax)Creates an instance initialized with the given syntax node.
@available(swift, introduced: 0.0.1, deprecated: 0.0.1, message: "Use Enumeration.Case.cases(from:) instead") public init(_ node: EnumCaseDeclSyntax)The associated values of the enumeration case, if any.
let associatedValue: [Function.Parameter]?The declaration modifiers.
let modifiers: [Modifier]The enumeration case name.
let name: Stringvar description: Stringvar description: StringThe declaration keyword ("case").
let keyword: StringThe raw value of the enumeration case, if any.
let rawValue: String?The declaration attributes.
let attributes: [Attribute]A dot-delimited (.) path used to qualify the enumeration case name
within the module scope of the declaration,
or nil if the containing enumeration isn't nested
(that is, declared at the top-level scope of a module).
let context: String?For example,
given the following declaration of case C.c
the context is "A.B":
enum A { enum B { enum C { case c } }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