MCPcopy Create free account
hub / github.com/amber-lang/amber / get_context

Method get_context

src/utils/function_cache.rs:71–73  ·  view source on GitHub ↗

Gets the context of a function declaration

(&self, id: usize)

Source from the content-addressed store, hash-verified

69
70 /// Gets the context of a function declaration
71 pub fn get_context(&self, id: usize) -> Option<&Context> {
72 self.funs.get(&id).map(|f| &f.context)
73 }
74
75 /// Gets the block of a function declaration
76 pub fn get_block(&self, id: usize) -> Option<&Block> {

Callers 1

run_function_with_argsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected