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

Method emit_load_zero_super_method

crates/codegen/src/compile.rs:9585–9588  ·  view source on GitHub ↗

Emit LOAD_SUPER_ATTR for 0-arg super().method() call. Encodes: (name_idx << 2) | 0b01 (method=1, class=0)

(&mut self, name_idx: u32)

Source from the content-addressed store, hash-verified

9583 /// Emit LOAD_SUPER_ATTR for 0-arg super().method() call.
9584 /// Encodes: (name_idx << 2) | 0b01 (method=1, class=0)
9585 fn emit_load_zero_super_method(&mut self, name_idx: u32) {
9586 let encoded = LoadSuperAttr::new(name_idx, true, false);
9587 self.emit_arg(encoded, |namei| Instruction::LoadSuperAttr { namei })
9588 }
9589
9590 fn emit_return_value(&mut self) {
9591 emit!(self, Instruction::ReturnValue)

Callers 1

compile_callMethod · 0.80

Calls 2

newFunction · 0.85
emit_argMethod · 0.80

Tested by

no test coverage detected