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

Method emit_load_super_method

crates/codegen/src/compile.rs:9571–9574  ·  view source on GitHub ↗

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

(&mut self, name_idx: u32)

Source from the content-addressed store, hash-verified

9569 /// Emit LOAD_SUPER_ATTR for 2-arg super().method() call.
9570 /// Encodes: (name_idx << 2) | 0b11 (method=1, class=1)
9571 fn emit_load_super_method(&mut self, name_idx: u32) {
9572 let encoded = LoadSuperAttr::new(name_idx, true, true);
9573 self.emit_arg(encoded, |namei| Instruction::LoadSuperAttr { namei })
9574 }
9575
9576 /// Emit LOAD_SUPER_ATTR for 0-arg super().attr access.
9577 /// Encodes: (name_idx << 2) | 0b00 (method=0, class=0)

Callers 1

compile_callMethod · 0.80

Calls 2

newFunction · 0.85
emit_argMethod · 0.80

Tested by

no test coverage detected