Skip to main content

function_slice

Function function_slice 

Source
pub fn function_slice<'a>(
    stmts: &[Stmt<'a>],
    target: Symbol,
    interner: &Interner,
) -> Vec<Stmt<'a>>
Expand description

The statements needed to compile target standalone: the target function plus every function reachable from it through the call graph (transitively). Main and top-level functions unreachable from target are dropped; definition order is preserved.