MCPcopy Index your code
hub / github.com/endbasic/endbasic / get_global

Method get_global

core/src/compiler/syms.rs:174–176  ·  view source on GitHub ↗

Gets a global symbol by its `vref`, returning its register and prototype.

(&self, vref: &VarRef)

Source from the content-addressed store, hash-verified

172
173 /// Gets a global symbol by its `vref`, returning its register and prototype.
174 pub(crate) fn get_global(&self, vref: &VarRef) -> Result<(Register, SymbolPrototype)> {
175 get_var(vref, &self.globals, Register::global, RegisterScope::Global)
176 }
177
178 /// Creates a new global symbol `key` with `proto`.
179 pub(crate) fn put_global(

Calls 1

get_varFunction · 0.85