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

Method pop_fblock

crates/codegen/src/compile.rs:1495–1500  ·  view source on GitHub ↗

Pop an fblock = compiler_pop_fblock

(&mut self, _expected_type: FBlockType)

Source from the content-addressed store, hash-verified

1493 /// Pop an fblock
1494 // = compiler_pop_fblock
1495 fn pop_fblock(&mut self, _expected_type: FBlockType) -> FBlockInfo {
1496 let code = self.current_code_info();
1497 // TODO: Add assertion to check expected type matches
1498 // assert!(matches!(fblock.fb_type, expected_type));
1499 code.fblock.pop().expect("fblock stack underflow")
1500 }
1501
1502 /// Unwind a single fblock, emitting cleanup code
1503 /// preserve_tos: if true, preserve the top of stack (e.g., return value)

Callers 11

unwind_fblock_stackMethod · 0.80
compile_try_statementMethod · 0.80
compile_function_bodyMethod · 0.80
compile_whileMethod · 0.80
compile_withMethod · 0.80
compile_forMethod · 0.80
compile_comprehensionMethod · 0.80

Calls 2

current_code_infoMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected