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

Method current_block

crates/codegen/src/compile.rs:9869–9872  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

9867 }
9868
9869 fn current_block(&mut self) -> &mut ir::Block {
9870 let info = self.current_code_info();
9871 &mut info.blocks[info.current_block]
9872 }
9873
9874 fn new_block(&mut self) -> BlockIdx {
9875 let code = self.current_code_info();

Callers 5

compileMethod · 0.80
emit_resume_for_scopeMethod · 0.80
compile_block_exprMethod · 0.80
_emitMethod · 0.80
set_no_locationMethod · 0.80

Calls 1

current_code_infoMethod · 0.80

Tested by

no test coverage detected