stable_mir::mir::visit

Function statement_location

Source
pub fn statement_location(
    body: &Body,
    bb_idx: &BasicBlockIdx,
    stmt_idx: usize,
) -> Location
Expand description

Location of the statement at the given index for a given basic block. Assumes that stmt_idx and bb_idx are valid for a given body.