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

Method emit_load_zero_super_attr

crates/codegen/src/compile.rs:9578–9581  ·  view source on GitHub ↗

Emit LOAD_SUPER_ATTR for 0-arg super().attr access. Encodes: (name_idx << 2) | 0b00 (method=0, class=0)

(&mut self, name_idx: u32)

Source from the content-addressed store, hash-verified

9576 /// Emit LOAD_SUPER_ATTR for 0-arg super().attr access.
9577 /// Encodes: (name_idx << 2) | 0b00 (method=0, class=0)
9578 fn emit_load_zero_super_attr(&mut self, name_idx: u32) {
9579 let encoded = LoadSuperAttr::new(name_idx, false, false);
9580 self.emit_arg(encoded, |namei| Instruction::LoadSuperAttr { namei })
9581 }
9582
9583 /// Emit LOAD_SUPER_ATTR for 0-arg super().method() call.
9584 /// Encodes: (name_idx << 2) | 0b01 (method=1, class=0)

Callers 1

compile_expressionMethod · 0.80

Calls 2

newFunction · 0.85
emit_argMethod · 0.80

Tested by

no test coverage detected