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

Function maybe_propagate_location

crates/codegen/src/ir.rs:2668–2678  ·  view source on GitHub ↗
(
    instr: &mut InstructionInfo,
    location: SourceLocation,
    end_location: SourceLocation,
)

Source from the content-addressed store, hash-verified

2666}
2667
2668fn maybe_propagate_location(
2669 instr: &mut InstructionInfo,
2670 location: SourceLocation,
2671 end_location: SourceLocation,
2672) {
2673 if !instruction_has_lineno(instr) {
2674 instr.location = location;
2675 instr.end_location = end_location;
2676 instr.lineno_override = None;
2677 }
2678}
2679
2680fn propagate_locations_in_block(
2681 block: &mut Block,

Callers 2

propagate_line_numbersFunction · 0.85

Calls 1

instruction_has_linenoFunction · 0.85

Tested by

no test coverage detected