MCPcopy Index your code
hub / github.com/RustPython/RustPython / resolve_line_numbers

Function resolve_line_numbers

crates/codegen/src/ir.rs:2837–2841  ·  view source on GitHub ↗
(blocks: &mut Vec<Block>)

Source from the content-addressed store, hash-verified

2835}
2836
2837fn resolve_line_numbers(blocks: &mut Vec<Block>) {
2838 let mut predecessors = compute_predecessors(blocks);
2839 duplicate_exits_without_lineno(blocks, &mut predecessors);
2840 propagate_line_numbers(blocks, &predecessors);
2841}
2842
2843/// Duplicate `LOAD_CONST None + RETURN_VALUE` for blocks that fall through
2844/// to the final return block.

Callers 1

finalize_codeMethod · 0.85

Calls 3

compute_predecessorsFunction · 0.85
propagate_line_numbersFunction · 0.85

Tested by

no test coverage detected