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 the runtime’s
dsl::validate::validate_expr (in polydat-core)
reference-collection arm minus the diagnostics, so the two stay
in lockstep about what counts as a reference.