Skip to main content

rewrite_inline_exprs

Function rewrite_inline_exprs 

Source
pub fn rewrite_inline_exprs(
    ops: &mut [ParsedOp],
) -> Result<HashMap<String, String>, String>
Expand description

Rewrite inline expressions ({{expr}}) in op template strings to use named binding references ({__expr_N}).

Returns the expression-to-name map for the caller to know what was rewritten. Fails on a malformed bind point, naming the op.