MCPcopy Create free account
hub / github.com/PRQL/prql / unshadow

Method unshadow

prqlc/prqlc/src/semantic/module.rs:316–324  ·  view source on GitHub ↗
(&mut self, ident: &str)

Source from the content-addressed store, hash-verified

314 }
315
316 pub fn unshadow(&mut self, ident: &str) {
317 if let Some(entry) = self.names.remove(ident) {
318 let ns = entry.kind.into_module().unwrap();
319
320 if let Some(shadowed) = ns.shadowed {
321 self.names.insert(ident.to_string(), *shadowed);
322 }
323 }
324 }
325
326 pub fn stack_push(&mut self, ident: &str, namespace: Module) {
327 let entry = self

Callers 3

resolve_function_argsMethod · 0.80
fold_typeMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by 1