MCPcopy Create free account
hub / github.com/borgo-lang/borgo / get_binding

Method get_binding

compiler/src/codegen.rs:203–208  ·  view source on GitHub ↗
(&self, value: &str)

Source from the content-addressed store, hash-verified

201 }
202
203 fn get_binding(&self, value: &str) -> Option<String> {
204 self.scopes
205 .iter()
206 .find_map(|scope| scope.get(value))
207 .cloned()
208 }
209
210 fn is_defined_in_current_scope(&self, value: &str) -> bool {
211 self.scopes.front().unwrap().get(value).is_some()

Callers 1

emit_varMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected