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