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

Method label_module

prqlc/prqlc/src/semantic/reporting.rs:47–57  ·  view source on GitHub ↗
(&mut self, module: &Module)

Source from the content-addressed store, hash-verified

45
46impl Labeler<'_> {
47 fn label_module(&mut self, module: &Module) {
48 for (_, decl) in module.names.iter() {
49 if let DeclKind::TableDecl(TableDecl {
50 expr: TableExpr::RelationVar(expr),
51 ..
52 }) = &decl.kind
53 {
54 self.fold_expr(*expr.clone()).unwrap();
55 }
56 }
57 }
58
59 fn get_span_lines(&mut self, id: usize) -> Option<String> {
60 let decl_span = self.root_mod.span_map.get(&id);

Callers 2

label_referencesFunction · 0.80
fold_exprMethod · 0.80

Calls 2

iterMethod · 0.80
fold_exprMethod · 0.45

Tested by

no test coverage detected