Skip to main content

collect_assigned_identifiers

Function collect_assigned_identifiers 

Source
pub fn collect_assigned_identifiers(
    node: Node<'_>,
    source: &str,
    out: &mut HashSet<String>,
)
Expand description

Collect the names an assignment or for target binds: plain identifiers and identifiers nested in destructuring patterns. An attribute, subscript, or call target is evaluated, not bound (recv.member = v and make().member = v bind no local names), so its identifiers stay references and must not shadow same-named imports or declarations (#898).