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

Function is_exit_without_lineno

crates/codegen/src/ir.rs:2658–2666  ·  view source on GitHub ↗
(block: &Block)

Source from the content-addressed store, hash-verified

2656}
2657
2658fn is_exit_without_lineno(block: &Block) -> bool {
2659 let Some(first) = block.instructions.first() else {
2660 return false;
2661 };
2662 let Some(last) = block.instructions.last() else {
2663 return false;
2664 };
2665 !instruction_has_lineno(first) && last.instr.is_scope_exit()
2666}
2667
2668fn maybe_propagate_location(
2669 instr: &mut InstructionInfo,

Callers 1

Calls 4

instruction_has_linenoFunction · 0.85
is_scope_exitMethod · 0.80
firstMethod · 0.45
lastMethod · 0.45

Tested by

no test coverage detected