Skip to main content

else_if_tail

Function else_if_tail 

Source
pub fn else_if_tail(b: &Block) -> Option<&Expr>
Expand description

#2891: the if an else if desugars to. The parser wraps it in a brace-less block with the same span as the if itself, which tells it apart from an explicit else { if … } (whose block spans its braces).