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 declaration.
public struct ConditionalCompilationBlock: Declaration, Hashable, Codable
Codable, Declaration, ExpressibleBySyntax, Hashable
Codable
Declaration
ExpressibleBySyntax
Hashable
init(_:)
Creates an instance initialized with the given syntax node.
public init(_ node: IfConfigDeclSyntax)
branches
The conditional compilation block branches.
let branches: [Branch]
For example, the following compilation block declaration has two branches:
#if true enum A {} #else enum B {} #endif
The first branch has the keyword #if and condition "true". The second branch has the keyword #else and no condition.
#if
"true"
#else