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

Method has_local

crates/stdlib/src/_opcode.rs:129–140  ·  view source on GitHub ↗
(opcode: i32)

Source from the content-addressed store, hash-verified

127 /// Check if instruction uses co_varnames (local variables)
128 #[must_use]
129 pub fn has_local(opcode: i32) -> bool {
130 matches!(
131 Self::try_from(opcode).map(|op| op.inner()),
132 Ok(AnyInstruction::Real(
133 Instruction::DeleteFast { .. }
134 | Instruction::LoadFast { .. }
135 | Instruction::LoadFastAndClear { .. }
136 | Instruction::StoreFast { .. }
137 | Instruction::StoreFastLoadFast { .. }
138 ))
139 )
140 }
141
142 /// Check if instruction has exception info
143 #[must_use]

Callers 1

opcode.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected