Skip to main content

match_has_statement_arm

Function match_has_statement_arm 

Source
pub fn match_has_statement_arm(arms: &[AIRNode]) -> bool
Expand description

Returns true if any arm of a match carries a statement body (see arm_body_is_statement). When true, backends without a statement-admitting expression form (Go, Python, JS, TS) must emit the match in statement position rather than as an expression.