Return the labels targeted by the instructions of this CodeObject
(&self)
| 1124 | |
| 1125 | /// Return the labels targeted by the instructions of this CodeObject |
| 1126 | pub fn label_targets(&self) -> BTreeSet<Label> { |
| 1127 | let mut label_targets = BTreeSet::new(); |
| 1128 | let mut arg_state = OpArgState::default(); |
| 1129 | for instruction in &*self.instructions { |
| 1130 | let (instruction, arg) = arg_state.get(*instruction); |
| 1131 | if let Some(l) = instruction.label_arg() { |
| 1132 | label_targets.insert(l.get(arg)); |
| 1133 | } |
| 1134 | } |
| 1135 | label_targets |
| 1136 | } |
| 1137 | |
| 1138 | fn display_inner( |
| 1139 | &self, |
no test coverage detected