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

Method stack_push

prqlc/prqlc/src/semantic/module.rs:326–334  ·  view source on GitHub ↗
(&mut self, ident: &str, namespace: Module)

Source from the content-addressed store, hash-verified

324 }
325
326 pub fn stack_push(&mut self, ident: &str, namespace: Module) {
327 let entry = self
328 .names
329 .entry(ident.to_string())
330 .or_insert_with(|| DeclKind::LayeredModules(Vec::new()).into());
331 let stack = entry.kind.as_layered_modules_mut().unwrap();
332
333 stack.push(namespace);
334 }
335
336 pub fn stack_pop(&mut self, ident: &str) -> Option<Module> {
337 (self.names.get_mut(ident))

Callers 3

fold_functionMethod · 0.80
materialize_functionMethod · 0.80

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected