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

Method emit_load_attr

crates/codegen/src/compile.rs:9543–9546  ·  view source on GitHub ↗

Emit LOAD_ATTR for attribute access (method=false). Encodes: (name_idx << 1) | 0

(&mut self, name_idx: u32)

Source from the content-addressed store, hash-verified

9541 /// Emit LOAD_ATTR for attribute access (method=false).
9542 /// Encodes: (name_idx << 1) | 0
9543 fn emit_load_attr(&mut self, name_idx: u32) {
9544 let encoded = LoadAttr::new(name_idx, false);
9545 self.emit_arg(encoded, |namei| Instruction::LoadAttr { namei })
9546 }
9547
9548 /// Emit LOAD_ATTR with method flag set (for method calls).
9549 /// Encodes: (name_idx << 1) | 1

Callers 3

compile_augassignMethod · 0.80
compile_expressionMethod · 0.80
compile_callMethod · 0.80

Calls 2

newFunction · 0.85
emit_argMethod · 0.80

Tested by

no test coverage detected