Skip to main content

rewrite_expr

Function rewrite_expr 

Source
pub fn rewrite_expr(expr: &mut BoundExpr, rewrite: Rewrite<'_>)
Expand description

Applies a rewrite to one expression and everything under it.

The expression itself first, then its children, then the block a subquery holds - so a rewrite that replaces a node does not then walk the children of the node it put there.

@param expr - the expression to rewrite @param rewrite - what to do to each expression