pub fn reachable_units(units: &[CUnit], roots: &BTreeSet<String>) -> Vec<usize>Expand description
Indices (in original order) of the units transitively reachable from roots. A unit is reached
when any symbol it defines is in the frontier; reaching it adds every identifier it references.