MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / visit_mut_pre

Method visit_mut_pre

src/expr/src/visit.rs:371–381  ·  view source on GitHub ↗
(&mut self, f: &mut F)

Source from the content-addressed store, hash-verified

369 }
370
371 fn visit_mut_pre<F>(&mut self, f: &mut F)
372 where
373 F: FnMut(&mut Self),
374 {
375 let mut stack = vec![self];
376 while let Some(elt) = stack.pop() {
377 f(elt);
378 // Push children in reverse so they pop (and are visited) left-to-right.
379 stack.extend(elt.children_mut().rev())
380 }
381 }
382
383 fn try_visit_pre<F, E>(&self, f: &mut F) -> Result<(), E>
384 where

Callers 5

test_recursive_types_aFunction · 0.80
test_recursive_types_bFunction · 0.80
rewrite_scalarMethod · 0.80
install_lifted_mfpFunction · 0.80

Calls 3

popMethod · 0.45
extendMethod · 0.45
children_mutMethod · 0.45

Tested by 2

test_recursive_types_aFunction · 0.64
test_recursive_types_bFunction · 0.64