MCPcopy Create free account
hub / github.com/aspizu/goboscript / get_var

Method get_var

src/codegen/sb3.rs:88–93  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

86 }
87
88 fn get_var(&self, name: &str) -> Option<&Var> {
89 self.sprite
90 .vars
91 .get(name)
92 .or_else(|| self.stage.and_then(|stage| stage.vars.get(name)))
93 }
94
95 pub fn get_list(&self, name: &str) -> Option<&List> {
96 self.sprite

Callers 1

qualify_nameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected