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

Method contains_local

core/src/compiler/syms.rs:381–383  ·  view source on GitHub ↗

Returns true if a local variable `key` is already defined.

(&self, key: &SymbolKey)

Source from the content-addressed store, hash-verified

379
380 /// Returns true if a local variable `key` is already defined.
381 pub(crate) fn contains_local(&self, key: &SymbolKey) -> bool {
382 self.locals.get(key).is_some()
383 }
384
385 /// Returns true if a global variable `key` is already defined.
386 pub(crate) fn contains_global(&self, key: &SymbolKey) -> bool {

Callers 1

compile_stmtFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected