TreeAccumulator

scala.quoted.Quotes.reflectModule.TreeAccumulator

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

Concise view

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