Skip to main content

leads_with_fusable_unary

Function leads_with_fusable_unary 

Source
fn leads_with_fusable_unary(expr: &Expr<'_>) -> bool
Expand description

Whether the leftmost operand of expr is a - or ~ unary, following the left spine of binary and ternary expressions so x =- a + 1 (x = (-a) + 1) is caught as well.