(
&self,
expr_index: HighLevelInstructionIndex,
)
| 35 | } |
| 36 | |
| 37 | pub fn instruction_from_expr_index( |
| 38 | &self, |
| 39 | expr_index: HighLevelInstructionIndex, |
| 40 | ) -> Option<HighLevelILInstruction> { |
| 41 | if expr_index.0 >= self.expression_count() { |
| 42 | None |
| 43 | } else { |
| 44 | Some(HighLevelILInstruction::new_expr( |
| 45 | self.to_owned(), |
| 46 | expr_index, |
| 47 | )) |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | // TODO: This returns an expression index! |
| 52 | pub fn root_instruction_index(&self) -> HighLevelInstructionIndex { |
no test coverage detected