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
ConditionalCompilationBlock_Branch
Mattt edited this page Aug 2, 2020
·
9 revisions
A conditional compilation block branch.
public enum BranchCodable, ExpressibleBySyntax, Hashable
Creates an instance initialized with the given syntax node.
public init(_ node: IfConfigClauseSyntax)public init(from decoder: Decoder) throwsAn #if branch.
case `if`(: String)An #elseif branch.
case `elseif`(: String)An #else branch.
case `else`The branch keyword, either "#if", "#elseif", or "#else".
var keyword: StringThe branch condition, if any.
var condition: String?This value is present when keyword is equal to "#if" or #elseif
and nil when keyword is equal to "#else".
public func encode(to encoder: Encoder) throwsGenerated 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