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

Method get_mut

prqlc/prqlc/src/semantic/module.rs:85–103  ·  view source on GitHub ↗
(&mut self, ident: &Ident)

Source from the content-addressed store, hash-verified

83 }
84
85 pub fn get_mut(&mut self, ident: &Ident) -> Option<&mut Decl> {
86 let mut ns = self;
87
88 for part in &ident.path {
89 let entry = ns.names.get_mut(part);
90
91 match entry {
92 Some(Decl {
93 kind: DeclKind::Module(inner),
94 ..
95 }) => {
96 ns = inner;
97 }
98 _ => return None,
99 }
100 }
101
102 ns.names.get_mut(&ident.name)
103 }
104
105 /// Get namespace entry using a fully qualified ident.
106 pub fn get(&self, fq_ident: &Ident) -> Option<&Decl> {

Callers 14

visitMethod · 0.80
split_off_backFunction · 0.80
compile_loopFunction · 0.80
fold_relMethod · 0.80
prune_inputsFunction · 0.80
intersectFunction · 0.80
insert_frameMethod · 0.80
stack_popMethod · 0.80
collect_framesFunction · 0.80
infer_table_columnMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected