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.

class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(x: X, tree: Tree)(using Context): X

Inherited methods

def apply(x: X, trees: List[Tree])(using Context): X
Inherited from
TreeAccumulator
def foldMoreCases(x: X, tree: Tree)(using Context): X
Inherited from
TreeAccumulator
def foldOver(x: X, tree: Tree)(using Context): X
Inherited from
TreeAccumulator