Skip to main content

right_edge

Function right_edge 

Source
fn right_edge<T: AstInfo>(expr: &Expr<T>) -> u8
Expand description

The loosest precedence exposed on expr’s right spine, the precedence at which an operator printed immediately to its right would bind into it rather than wrap it. For a left operand / subject of a construct that prints to its right, this is what decides parenthesization (its mirror, left_edge, decides right operands), because a prefix operator and the right operand of a binary/BETWEEN/LIKE/IS DISTINCT FROM are right-transparent: - NOT a IN (b) exposes the NOT’s IN on the right even though its top node is unary -. Forms that close with a bracket on the right ((…), […], ::type, IS NULL) are ATOM.