TreeAccumulator

scala.quoted.Quotes.reflectModule.TreeAccumulator
trait TreeAccumulator[X]

Customizable Tree accumulator.

Usage:

def inQuotes(using q: Quotes) = {
  import q.reflect.*
  class MyTreeAccumulator[X] extends TreeAccumulator[X] {
    def foldTree(x: X, tree: Tree)(owner: Symbol): X = ???
  }
}

Attributes

Source
Quotes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def foldTree(x: X, tree: Tree)(owner: Symbol): X

Attributes

Source
Quotes.scala

Concrete methods

def foldOverTree(x: X, tree: Tree)(owner: Symbol): X

Attributes

Source
Quotes.scala
def foldTrees(x: X, trees: Iterable[Tree])(owner: Symbol): X

Attributes

Source
Quotes.scala