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

Method visit_pre

src/expr/src/relation.rs:2332–2338  ·  view source on GitHub ↗

Iterative pre-order visitor.

(&'a self, mut f: F)

Source from the content-addressed store, hash-verified

2330
2331 /// Iterative pre-order visitor.
2332 pub fn visit_pre<'a, F: FnMut(&'a Self)>(&'a self, mut f: F) {
2333 let mut worklist = vec![self];
2334 while let Some(expr) = worklist.pop() {
2335 f(expr);
2336 worklist.extend(expr.children().rev());
2337 }
2338 }
2339
2340 /// Iterative pre-order visitor.
2341 pub fn visit_pre_mut<F: FnMut(&mut Self)>(&mut self, mut f: F) {

Callers 4

sizeMethod · 0.45
recursive_idsMethod · 0.45
collect_expirationsMethod · 0.45

Calls 3

childrenMethod · 0.65
popMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected