ConditionalBindingStmt
public struct ConditionalBindingStmt : Stmt
A binding to a pattern that breaks control flow if the scrutinee doesn’t match.
-
Declaration
Swift
public let site: SourceRange -
The conditional binding.
Declaration
Swift
public let binding: BindingDecl.ID -
The branch that to which control flow jumps if the binding fails.
Declaration
Swift
public let fallback: BraceStmt.ID -
Creates an instance with the given properties.
Declaration
Swift
public init(binding: BindingDecl.ID, fallback: BraceStmt.ID, site: SourceRange)
View on GitHub