Struct CaseStatement
pub struct CaseStatement {
pub case_token: AttachedToken,
pub match_expr: Option<Expr>,
pub when_blocks: Vec<ConditionalStatementBlock>,
pub else_block: Option<ConditionalStatementBlock>,
pub end_case_token: AttachedToken,
}Expand description
The CASE token that starts the statement.
Optional expression to match against in CASE ... WHEN.
The WHEN ... THEN blocks of the CASE statement.
Optional ELSE block for the CASE statement.
The last token of the statement (END or CASE).