TreeMapWithImplicits

A TreeMap that maintains the necessary infrastructure to support contextual implicit searches (type-scope implicits are supported anyway).

This incudes implicits defined in scope as well as imported implicits.

class TreeMap
class Object
trait Matchable
class Any

Value members

Concrete methods

override def transform(tree: Tree)(using Context): Tree
Definition Classes
override def transformStats(stats: List[Tree], exprOwner: Symbol)(using Context): List[Tree]

Transform statements, while maintaining import contexts and expression contexts in the same way as Typer does. The code addresses additional concerns:

Transform statements, while maintaining import contexts and expression contexts in the same way as Typer does. The code addresses additional concerns:

  • be tail-recursive where possible
  • don't re-allocate trees where nothing has changed
Definition Classes

Inherited methods

def transform(trees: List[Tree])(using Context): List[Tree]
Inherited from
TreeMap
Inherited from
TreeMap
Inherited from
TreeMap
def transformSub[Tr <: Tree](trees: List[Tr])(using Context): List[Tr]
Inherited from
TreeMap
def transformSub[Tr <: Tree](tree: Tr)(using Context): Tr
Inherited from
TreeMap

Inherited fields

Inherited from
TreeMap