Dotty Documentation

0.14.0-bin-SNAPSHOT

class QuotedFrontend
extends Phase

Frontend that receives a scala.quoted.Expr or scala.quoted.Type as input

[-] Constructors

QuotedFrontend ( putInClass: Boolean )

[-] Members

[+] private val putInClass : Boolean
[+] private def inClass ( expr: Expr [ Nothing <: Any ] ) ( implicit ctx: Context ) : Tree

Places the contents of expr in a compilable tree for a class with the following format. package __root__ { class ' { def apply: Any = <expr> } }

[+] def phaseName : String

A name given to the Phase that can be used to debug the compiler. For instance, it is possible to print trees after a given phase using:

$ ./bin/dotc -Xprint:<phaseNameHere> sourceFile.scala
[+] def run ( implicit ctx: Context ) : Unit
[+] override def runOn ( units: List [ CompilationUnit ] ) ( implicit ctx: Context ) : List [ CompilationUnit ]