Skip to main content

Module dangerous_unary_operator

Module dangerous_unary_operator 

Source

Statics§

DANGEROUS_UNARY_OPERATOR

Functions§

leads_with_fusable_unary 🔒
Whether the leftmost operand of expr is a - or ~ unary, following the left spine of binary and ternary expressions. rhs.span begins at that leading unary, so a fused =- / =~ is caught whether the unary is the whole RHS (x =- a) or only leads it (x =- a + 1).