Creates a new global symbol table that knows about the given `upcalls`.
(upcalls: HashMap<SymbolKey, Rc<CallableMetadata>>)
| 162 | impl GlobalSymtable { |
| 163 | /// Creates a new global symbol table that knows about the given `upcalls`. |
| 164 | pub(crate) fn new(upcalls: HashMap<SymbolKey, Rc<CallableMetadata>>) -> Self { |
| 165 | Self { globals: HashMapWithIds::default(), upcalls, user_callables: HashMap::default() } |
| 166 | } |
| 167 | |
| 168 | /// Enters a new local scope. |
| 169 | pub(crate) fn enter_scope(&mut self) -> LocalSymtable<'_> { |