T trait

TreeAccumulator [X]

extends Object

TASTy Reflect tree accumulator.

Usage:

class MyTreeAccumulator[R <: scala.tasty.Reflection & Singleton](val reflect: R)
    extends scala.tasty.reflect.TreeAccumulator[X] {
  import reflect.{given _, _}
  def foldTree(x: X, tree: Tree)(using ctx: Context): X = ...
}

Supertypes

Object

Members

val 

reflect

: Reflection

def 

foldOverTree

( x: X tree: Tree ) ( implicit  ctx: Context ) : X

def 

foldTree

( x: X tree: Tree ) ( implicit  ctx: Context ) : X

def 

foldTrees

( x: X trees: Iterable[Tree] ) ( implicit  ctx: Context ) : X