(
expr: &ast::ModExpression,
source_file: SourceFile,
)
| 111 | } |
| 112 | |
| 113 | pub fn scan_expr( |
| 114 | expr: &ast::ModExpression, |
| 115 | source_file: SourceFile, |
| 116 | ) -> SymbolTableResult<Self> { |
| 117 | let mut builder = SymbolTableBuilder::new(source_file); |
| 118 | builder.scan_expression(expr.body.as_ref(), ExpressionContext::Load)?; |
| 119 | builder.finish() |
| 120 | } |
| 121 | |
| 122 | pub fn lookup(&self, name: &str) -> Option<&Symbol> { |
| 123 | self.symbols.get(name) |
nothing calls this directly
no test coverage detected