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

Concise view

Value members

Concrete methods

Attributes

Source:
Quotes.scala

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