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

Method contains_global

core/src/compiler/syms.rs:188–190  ·  view source on GitHub ↗

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

(&self, key: &SymbolKey)

Source from the content-addressed store, hash-verified

186
187 /// Returns true if a global variable `key` is already defined.
188 pub(crate) fn contains_global(&self, key: &SymbolKey) -> bool {
189 self.globals.get(key).is_some()
190 }
191
192 /// Iterates over all global variables, yielding `(key, prototype, register_index)` tuples.
193 pub(crate) fn iter_globals(

Callers 1

compile_stmtFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected