forge::coverage::anchors

Function find_anchor_simple

Source
pub fn find_anchor_simple(
    source_map: &Vec<SourceElement>,
    ic_pc_map: &IcPcMap,
    item_id: usize,
    loc: &SourceLocation,
) -> Result<ItemAnchor, Report>
Expand description

Find an anchor representing the first opcode within the given source range.