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

Function is_mod_def_for

prqlc/prqlc/src/parser.rs:179–181  ·  view source on GitHub ↗
(stmt: &pr::Stmt, name: &str)

Source from the content-addressed store, hash-verified

177}
178
179pub(crate) fn is_mod_def_for(stmt: &pr::Stmt, name: &str) -> bool {
180 stmt.kind.as_module_def().is_some_and(|x| x.name == name)
181}
182
183fn path_starts_with_uppercase(p: &&PathBuf) -> bool {
184 p.components()

Callers 2

insert_stmts_at_pathFunction · 0.85
load_std_libFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected