TreeMap

trait TreeMap

Customizable tree mapper.

Usage:

def inQuotes(using q: Quotes) = {
  import q.reflect._
  class MyTreeMap extends TreeMap {
    override def transformTree(tree: Tree)(owner: Symbol): Tree = ???
  }
}

Use Symbol.asQuotes to create quotes with the correct owner within the TreeMap.

class Object
trait Matchable
class Any

Value members

Concrete methods

def transformSubTrees[Tr <: Tree](trees: List[Tr])(owner: Symbol): List[Tr]
def transformTerm(tree: Term)(owner: Symbol): Term
def transformTerms(trees: List[Term])(owner: Symbol): List[Term]
def transformTree(tree: Tree)(owner: Symbol): Tree
def transformTrees(trees: List[Tree])(owner: Symbol): List[Tree]