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

Method label_targets

crates/compiler-core/src/bytecode.rs:1126–1136  ·  view source on GitHub ↗

Return the labels targeted by the instructions of this CodeObject

(&self)

Source from the content-addressed store, hash-verified

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,

Callers 1

display_innerMethod · 0.80

Calls 4

newFunction · 0.85
label_argMethod · 0.80
getMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected