Skip to main content

collect_expr_refs

Function collect_expr_refs 

Source
pub fn collect_expr_refs(expr: &Expr, out: &mut BTreeSet<String>)
Expand description

Walk a parsed Expr, inserting every free name reference into out. The traversal mirrors crate::validate::validate_expr’s reference-collection arm minus the diagnostics, so the two stay in lockstep about what counts as a reference.