MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / mark_global

Method mark_global

crates/asm-to-binary/src/assembler/symbol_table.rs:31–36  ·  view source on GitHub ↗
(&mut self, name: impl Into<String>)

Source from the content-addressed store, hash-verified

29 }
30
31 pub fn mark_global(&mut self, name: impl Into<String>) {
32 let name = name.into();
33 if !self.globals.contains(&name) {
34 self.globals.push(name);
35 }
36 }
37
38 pub fn globals(&self) -> &[String] {
39 &self.globals

Callers 3

mark_global_and_queryFunction · 0.80
globals_no_duplicatesFunction · 0.80
compute_layoutFunction · 0.80

Calls 2

pushMethod · 0.80
containsMethod · 0.45

Tested by 2

mark_global_and_queryFunction · 0.64
globals_no_duplicatesFunction · 0.64