Walk the expression tree and call `f` on each node
(&mut self, f: &mut impl FnMut(&mut Self))
| 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 { |
no outgoing calls
no test coverage detected