ConditionalCompilationStmt
public struct ConditionalCompilationStmt : Stmt
A conditional-compilation statement.
-
A comparison test for semantic version.
See moreDeclaration
Swift
public enum VersionComparison : Codable, Equatable, Sendable -
A condition in a conditional compilation statement.
See moreDeclaration
Swift
public indirect enum Condition : Codable, Equatable, Sendable -
Declaration
Swift
public let site: SourceRange -
The condition.
Declaration
Swift
public let condition: Condition -
The statements in the block.
Declaration
Swift
public let stmts: [AnyStmtID] -
The statements to be used if the condition is false.
Declaration
Swift
public let fallback: [AnyStmtID] -
Creates an instance with the given properties.
Declaration
Swift
public init(condition: Condition, stmts: [AnyStmtID], fallback: [AnyStmtID], site: SourceRange) -
Returns the statements that this expands to.
Declaration
Swift
public func expansion(for factors: ConditionalCompilationFactors) -> [AnyStmtID]
View on GitHub