(
&'n self,
visitor: &mut V,
)
| 126 | /// ``` |
| 127 | #[cfg_attr(feature = "recursive_protection", recursive::recursive)] |
| 128 | fn visit<'n, V: TreeNodeVisitor<'n, Node = Self>>( |
| 129 | &'n self, |
| 130 | visitor: &mut V, |
| 131 | ) -> Result<TreeNodeRecursion> { |
| 132 | visitor |
| 133 | .f_down(self)? |
| 134 | .visit_children(|| self.apply_children(|c| c.visit(visitor)))? |
| 135 | .visit_parent(|| visitor.f_up(self)) |
| 136 | } |
| 137 | |
| 138 | /// Rewrite the tree node with a [`TreeNodeRewriter`], performing a |
| 139 | /// depth-first walk of the node and its children. |