Skip to main content

collect_variables

Function collect_variables 

Source
fn collect_variables<'hir>(
    hir: &'hir Hir<'hir>,
    stmts: &'hir [Stmt<'hir>],
    out: &mut Vec<VariableId>,
)
Expand description

The variables a statement list writes through expressions, through the loops under it as well: assignments (tuple targets included), increments, decrements, and deletes, wherever they sit.