MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / disassemble

Method disassemble

aiscript-vm/src/chunk.rs:215–222  ·  view source on GitHub ↗
(&self, name: impl Display)

Source from the content-addressed store, hash-verified

213 }
214
215 pub fn disassemble(&self, name: impl Display) {
216 println!("\n== {name} ==>");
217 let mut offset = 0;
218 while offset < self.code.len() {
219 offset = self.disassemble_instruction(offset);
220 }
221 println!("<== {name} ==\n");
222 }
223
224 pub fn disassemble_instruction(&self, offset: usize) -> usize {
225 static ONCE_TITLE: Once = Once::new();

Callers

nothing calls this directly

Calls 2

lenMethod · 0.80

Tested by

no test coverage detected