We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
A conditional compilation block branch.
public enum Branch
Codable, ExpressibleBySyntax, Hashable
Codable
ExpressibleBySyntax
Hashable
init(_:)
Creates an instance initialized with the given syntax node.
public init(_ node: IfConfigClauseSyntax)
init(from:)
public init(from decoder: Decoder) throws
`if`
An #if branch.
#if
case `if`(: String)
`elseif`
An #elseif branch.
#elseif
case `elseif`(: String)
`else`
An #else branch.
#else
case `else`
keyword
The branch keyword, either "#if", "#elseif", or "#else".
"#if"
"#elseif"
"#else"
var keyword: String
condition
The 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".
nil
encode(to:)
public func encode(to encoder: Encoder) throws