(&self)
| 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, |