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

Method emit_pop_jump_by_condition

crates/codegen/src/compile.rs:7053–7069  ·  view source on GitHub ↗
(&mut self, condition: bool, target_block: BlockIdx)

Source from the content-addressed store, hash-verified

7051 }
7052
7053 fn emit_pop_jump_by_condition(&mut self, condition: bool, target_block: BlockIdx) {
7054 if condition {
7055 emit!(
7056 self,
7057 Instruction::PopJumpIfTrue {
7058 delta: target_block
7059 }
7060 );
7061 } else {
7062 emit!(
7063 self,
7064 Instruction::PopJumpIfFalse {
7065 delta: target_block,
7066 }
7067 );
7068 }
7069 }
7070
7071 fn compile_annotation(&mut self, annotation: &ast::Expr) -> CompileResult<()> {
7072 if self.future_annotations {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected