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

Method emit_return_const

crates/codegen/src/compile.rs:9532–9535  ·  view source on GitHub ↗
(&mut self, constant: ConstantData)

Source from the content-addressed store, hash-verified

9530 }
9531
9532 fn emit_return_const(&mut self, constant: ConstantData) {
9533 self.emit_load_const(constant);
9534 emit!(self, Instruction::ReturnValue)
9535 }
9536
9537 fn emit_end_async_for(&mut self, send_target: BlockIdx) {
9538 self._emit(Instruction::EndAsyncFor, OpArg::NULL, send_target);

Callers 3

compile_programMethod · 0.80
compile_statementMethod · 0.80
compile_function_bodyMethod · 0.80

Calls 1

emit_load_constMethod · 0.80

Tested by

no test coverage detected