MCPcopy Create free account
hub / github.com/endbasic/endbasic / new

Method new

core/src/compiler/syms.rs:164–166  ·  view source on GitHub ↗

Creates a new global symbol table that knows about the given `upcalls`.

(upcalls: HashMap<SymbolKey, Rc<CallableMetadata>>)

Source from the content-addressed store, hash-verified

162impl 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<'_> {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected