/// Finds all variables declared as `var` of a function (before full analysis)
Finds all variables declared as `var` of a function (before full analysis)
Finds all variables declared as ` var ` of a function ( before full analysis )
pub(super) fn find_vars<T>(f: &T) -> Vec<Id>
where
    T: for<'any> VisitWith<Hoister<'any>>,
{
    let mut vars = vec![];
    let mut v = Hoister { vars: &mut vars };
    f.visit_children(&mut v);
    vars
}
pub ( super ) fn find_vars < T > ( f : & T ) -> Vec < Id > where T : for < ' any > VisitWith < Hoister < ' any > > , { let mut vars = vec ! [ ] ; let mut v = Hoister { vars : & mut vars } ; f . visit_children ( & mut v ) ; vars }
Finds all variables declared as `var` of a function (before full analysis)
Finds all variables declared as ` var ` of a function ( before full analysis )
f
&T