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

Method put_local

core/src/compiler/syms.rs:376–378  ·  view source on GitHub ↗

Creates a new local symbol `key` with `proto`.

(&mut self, key: SymbolKey, proto: SymbolPrototype)

Source from the content-addressed store, hash-verified

374
375 /// Creates a new local symbol `key` with `proto`.
376 pub(crate) fn put_local(&mut self, key: SymbolKey, proto: SymbolPrototype) -> Result<Register> {
377 put_var(key, proto, &mut self.locals, Register::local, RegisterScope::Local)
378 }
379
380 /// Returns true if a local variable `key` is already defined.
381 pub(crate) fn contains_local(&self, key: &SymbolKey) -> bool {

Calls 1

put_varFunction · 0.85