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

Method get

crates/compiler-core/src/bytecode/oparg.rs:96–102  ·  view source on GitHub ↗
(&mut self, ins: CodeUnit)

Source from the content-addressed store, hash-verified

94impl OpArgState {
95 #[inline(always)]
96 pub fn get(&mut self, ins: CodeUnit) -> (Instruction, OpArg) {
97 let arg = self.extend(ins.arg);
98 if !matches!(ins.op, Instruction::ExtendedArg) {
99 self.reset();
100 }
101 (ins.op, arg)
102 }
103
104 #[inline(always)]
105 pub fn extend(&mut self, arg: OpArgByte) -> OpArg {

Callers 15

from_ruff_parse_errorMethod · 0.45
python_locationMethod · 0.45
python_end_locationMethod · 0.45
read_sliceMethod · 0.45
deserialize_value_depthFunction · 0.45
deserialize_value_typedFunction · 0.45
serialize_codeFunction · 0.45
cloneMethod · 0.45
fmtMethod · 0.45
derefMethod · 0.45
replace_opMethod · 0.45
compare_exchange_opMethod · 0.45

Calls 2

extendMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected