MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / visit_mut

Method visit_mut

crates/expr/src/expr.rs:291–301  ·  view source on GitHub ↗

Walk the expression tree and call `f` on each node

(&mut self, f: &mut impl FnMut(&mut Self))

Source from the content-addressed store, hash-verified

289
290 /// Walk the expression tree and call `f` on each node
291 pub fn visit_mut(&mut self, f: &mut impl FnMut(&mut Self)) {
292 f(self);
293 match self {
294 Self::Select(lhs, _)
295 | Self::LeftDeepJoin(LeftDeepJoin { lhs, .. })
296 | Self::EqJoin(LeftDeepJoin { lhs, .. }, ..) => {
297 lhs.visit_mut(f);
298 }
299 Self::RelVar(..) => {}
300 }
301 }
302
303 /// The number of fields this expression returns
304 pub fn nfields(&self) -> usize {

Callers 2

alpha_renameFunction · 0.45
mut_planMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected