ShallowFolder
dotty.tools.dotc.ast.Trees$.Instance.ShallowFolder
class ShallowFolder[X](f: (X, Tree) => X) extends TreeAccumulator[X]
Fold f
over all tree nodes, in depth-first, prefix order, but don't visit subtrees where f
returns a different result for the root, i.e. f(x, root) ne x
.
Attributes
- Graph
-
- Supertypes
Members list
In this article