TreeTraverser

Customizable tree traverser.

Usage:

def inQuotes(using q: Quotes) = {
  import q.reflect._
  class MyTraverser extends TreeTraverser {
    override def traverseTree(tree: Tree)(owner: Symbol): Unit = ???
  }
}
Source:
Quotes.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

def foldTree(x: Unit, tree: Tree)(owner: Symbol): Unit
def traverseTree(tree: Tree)(owner: Symbol): Unit
protected def traverseTreeChildren(tree: Tree)(owner: Symbol): Unit

Inherited methods

def foldOverTree(x: Unit, tree: Tree)(owner: Symbol): X
Inherited from:
TreeAccumulator
Source:
Quotes.scala
def foldTrees(x: Unit, trees: Iterable[Tree])(owner: Symbol): X
Inherited from:
TreeAccumulator
Source:
Quotes.scala