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

Method get_function_root

compiler-lib/src/scope.rs:437–443  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

435 }
436
437 fn get_function_root(&self) -> Rc<FunctionRootScope> {
438 match &self.parent {
439 CompilationScope::FunctionRoot(r) => r.clone(),
440 CompilationScope::FunctionChild(c) => c.get_function_root(),
441 _ => panic!("function scope should end in a function, not a module"),
442 }
443 }
444
445 pub fn emit_typed_define(
446 &self,

Callers 1

emit_typed_defineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected