MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / get_chunk

Method get_chunk

aiscript-vm/src/vm/state.rs:263–267  ·  view source on GitHub ↗
(&mut self, chunk_id: ChunkId)

Source from the content-addressed store, hash-verified

261 }
262
263 pub fn get_chunk(&mut self, chunk_id: ChunkId) -> Result<Gc<'gc, Function<'gc>>, VmError> {
264 self.chunks.get(&chunk_id).copied().ok_or_else(|| {
265 VmError::RuntimeError(format!("Failed to find chunk with id {}", chunk_id))
266 })
267 }
268
269 // Call function with params
270 pub fn call_function(

Callers 4

compileMethod · 0.80
import_moduleMethod · 0.80
dispatch_nextMethod · 0.80
eval_function_with_idMethod · 0.80

Calls 2

RuntimeErrorClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected