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

Method shadow

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

Source from the content-addressed store, hash-verified

305 }
306
307 pub fn shadow(&mut self, ident: &str) {
308 let shadowed = self.names.remove(ident).map(Box::new);
309 let entry = DeclKind::Module(Module {
310 shadowed,
311 ..Default::default()
312 });
313 self.names.insert(ident.to_string(), entry.into());
314 }
315
316 pub fn unshadow(&mut self, ident: &str) {
317 if let Some(entry) = self.names.remove(ident) {

Callers 3

resolve_function_argsMethod · 0.80
fold_typeMethod · 0.80

Calls 3

ModuleClass · 0.85
mapMethod · 0.80
insertMethod · 0.45

Tested by 1