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

Method has_free

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

Source from the content-addressed store, hash-verified

113 /// Check if instruction uses co_freevars/co_cellvars
114 #[must_use]
115 pub fn has_free(opcode: i32) -> bool {
116 matches!(
117 Self::try_from(opcode).map(|op| op.inner()),
118 Ok(AnyInstruction::Real(
119 Instruction::DeleteDeref { .. }
120 | Instruction::LoadFromDictOrDeref { .. }
121 | Instruction::LoadDeref { .. }
122 | Instruction::StoreDeref { .. }
123 ))
124 )
125 }
126
127 /// Check if instruction uses co_varnames (local variables)
128 #[must_use]

Callers 1

opcode.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected