Skip to main content

collect_expr_references

Function collect_expr_references 

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

Collect identifier references from an Expr tree into out.

Walks every Ident, function call argument, binary/unary operand, array element, and field-access source. String- literal placeholders ({name} form) contribute their identifier-shaped placeholder bodies.

Cross-crate consumers (e.g. the host’s SRD-13f synthesizer) use this to discover transitive wire refs from a binding’s RHS without depending on the private validate module.