DeepFolder

dotty.tools.dotc.ast.Trees$.Instance.DeepFolder
class DeepFolder[X](f: (X, Tree) => X) extends TreeAccumulator[X]

Fold f over all tree nodes, in depth-first, prefix order

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

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

Attributes

Inherited from:
TreeAccumulator
def foldMoreCases(x: X, tree: Tree)(using Context): X

Attributes

Inherited from:
TreeAccumulator
def foldOver(x: X, tree: Tree)(using Context): X

Attributes

Inherited from:
TreeAccumulator