MCPcopy Create free account
hub / github.com/arialang/aria / load_entry_code_object

Method load_entry_code_object

compiler-lib/src/module.rs:19–28  ·  view source on GitHub ↗

relies on __entry being the last code object stored in the module after everything else is compiled

(&self)

Source from the content-addressed store, hash-verified

17 // relies on __entry being the last code object stored in the module
18 // after everything else is compiled
19 pub fn load_entry_code_object(&self) -> CompiledCodeObject {
20 let cco = self
21 .constants
22 .get(self.constants.len() - 1)
23 .expect("missing __entry constant");
24
25 cco.as_compiled_code_object()
26 .expect("__entry constant is not a code object")
27 .clone()
28 }
29}

Callers 1

load_into_moduleMethod · 0.80

Calls 3

expectMethod · 0.80
getMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected