(opcode: i32)
| 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] |