MCPcopy Create free account
hub / github.com/diem/move / labeled_code

Method labeled_code

language/move-bytecode-verifier/src/control_flow.rs:60–67  ·  view source on GitHub ↗
(
        &self,
        labels: &'b [Label],
    )

Source from the content-addressed store, hash-verified

58 }
59
60 fn labeled_code<'b: 'a>(
61 &self,
62 labels: &'b [Label],
63 ) -> impl Iterator<Item = (CodeOffset, &'a Bytecode, &'b Label)> {
64 self.code()
65 .zip(labels)
66 .map(|((i, instr), lbl)| (i, instr, lbl))
67 }
68
69 fn error(&self, status: StatusCode, offset: CodeOffset) -> PartialVMError {
70 PartialVMError::new(status).at_code_offset(self.current_function, offset)

Callers 1

check_codeFunction · 0.80

Calls 2

mapMethod · 0.45
codeMethod · 0.45

Tested by

no test coverage detected