TreeMap

scala.quoted.Quotes.reflectModule.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.

Attributes

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

Members list

Value members

Concrete methods

def transformCaseDef(tree: CaseDef)(owner: Symbol): CaseDef

Attributes

Source
Quotes.scala
def transformCaseDefs(trees: List[CaseDef])(owner: Symbol): List[CaseDef]

Attributes

Source
Quotes.scala

Attributes

Source
Quotes.scala

Attributes

Source
Quotes.scala
def transformSubTrees[Tr <: Tree](trees: List[Tr])(owner: Symbol): List[Tr]

Attributes

Source
Quotes.scala
def transformTerm(tree: Term)(owner: Symbol): Term

Attributes

Source
Quotes.scala
def transformTerms(trees: List[Term])(owner: Symbol): List[Term]

Attributes

Source
Quotes.scala
def transformTree(tree: Tree)(owner: Symbol): Tree

Attributes

Source
Quotes.scala
def transformTrees(trees: List[Tree])(owner: Symbol): List[Tree]

Attributes

Source
Quotes.scala

Attributes

Source
Quotes.scala

Attributes

Source
Quotes.scala

Attributes

Source
Quotes.scala

Attributes

Source
Quotes.scala