Dotty Documentation

0.14.0-bin-SNAPSHOT

abstract class TreeMapWithStages

The main transformer class

[-] Constructors

TreeMapWithStages ( ictx: Context )

[-] Members

[+] private var enteredSyms : List [ Symbol ]

A stack of entered symbols, to be unwound after scope exit

[+] @constructorOnly private val ictx : Context
[+] private val levelOfMap : HashMap [ Symbol, Int ]

A map from locally defined symbols to their definition quotation level

[+] protected def levelOf ( sym: Symbol ) : Option [ Int ]

The quotation level of the definition of the locally defined symbol

[+] protected def localSymbols : List [ Symbol ]

Localy defined symbols seen so far by StagingTransformer.transform

[+] private def markDef ( tree: Tree ) ( implicit ctx: Context ) : Unit

Enter staging level of symbol defined by tree, if applicable.

[+] override def transform ( tree: Tree ) ( implicit ctx: Context ) : Tree
[+] protected def transformQuotation ( body: Tree , quote: Tree ) ( implicit ctx: Context ) : Tree

Transform the quote quote which contains the quoted body.

[+] protected def transformSplice ( splice: Select ) ( implicit ctx: Context ) : Tree

Transform the splice splice.