Skip to main content

prune

Function prune 

Source
pub fn prune(
    rows: Vec<Relation>,
    kinds: &[Kind],
    paths: &BTreeSet<String>,
) -> Pruned
Expand description

The relations a task asked for (kinds, all when empty), pruned with plain code: another kind (kind), a test’s import that names no file of the tree (unresolved; a resolved one names the file), one the judge refused (rejected), and the same (kind, subject, object) again (duplicate). paths is every file of the tree.