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

Function block_has_fallthrough

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

Source from the content-addressed store, hash-verified

2645}
2646
2647fn block_has_fallthrough(block: &Block) -> bool {
2648 block
2649 .instructions
2650 .last()
2651 .is_none_or(|ins| !ins.instr.is_scope_exit() && !ins.instr.is_unconditional_jump())
2652}
2653
2654fn is_jump_instruction(instr: &InstructionInfo) -> bool {
2655 instr.instr.is_unconditional_jump() || is_conditional_jump(&instr.instr)

Callers 4

compute_predecessorsFunction · 0.85
propagate_line_numbersFunction · 0.85

Calls 3

is_scope_exitMethod · 0.80
is_unconditional_jumpMethod · 0.80
lastMethod · 0.45

Tested by

no test coverage detected