Skip to main content

try_create_case_literal

Function try_create_case_literal 

Source
fn try_create_case_literal(
    expr: &mut MirScalarExpr,
    column_types: &[ReprColumnType],
)
Expand description

Chain-walk rule: if node is an If-chain with >= 2 consecutive arms matching Eq(same_expr, literal), create a new CaseLiteral.