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

Function drop_module_def

prqlc/prqlc/src/cli/mod.rs:589–591  ·  view source on GitHub ↗
(stmts: &mut Vec<pr::Stmt>, name: &str)

Source from the content-addressed store, hash-verified

587}
588
589fn drop_module_def(stmts: &mut Vec<pr::Stmt>, name: &str) {
590 stmts.retain(|x| x.kind.as_module_def().map_or(true, |m| m.name != name));
591}
592
593fn read_files(input: &mut clio::ClioPath) -> Result<SourceTree> {
594 // Should this function move to a SourceTree constructor?

Callers 1

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected