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

Method emit_load_attr_method

crates/codegen/src/compile.rs:9550–9553  ·  view source on GitHub ↗

Emit LOAD_ATTR with method flag set (for method calls). Encodes: (name_idx << 1) | 1

(&mut self, name_idx: u32)

Source from the content-addressed store, hash-verified

9548 /// Emit LOAD_ATTR with method flag set (for method calls).
9549 /// Encodes: (name_idx << 1) | 1
9550 fn emit_load_attr_method(&mut self, name_idx: u32) {
9551 let encoded = LoadAttr::new(name_idx, true);
9552 self.emit_arg(encoded, |namei| Instruction::LoadAttr { namei })
9553 }
9554
9555 /// Emit LOAD_GLOBAL.
9556 /// Encodes: (name_idx << 1) | push_null_bit

Callers 1

compile_callMethod · 0.80

Calls 2

newFunction · 0.85
emit_argMethod · 0.80

Tested by

no test coverage detected