Dotty Documentation

0.7.0-bin-SNAPSHOT

class ReifyQuotes
extends MacroTransformWithImplicits

Translates quoted terms and types to unpickle method calls. Checks that the phase consistency principle (PCP) holds.

[-] Constructors

ReifyQuotes ( )

[-] Members

[+] private class LevelInfo
[+] private class Reifier

The main transformer class

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

If tree has holes, convert it to a function taking a Seq of elements as arguments where each hole is replaced by the corresponding sequence element.

[+] protected def newTransformer ( implicit ctx: Context ) : Transformer
[+] override 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
[+] private def replaceHoles ( paramRefs: List [ Tree ] ) : TreeMap

Requiring that paramRefs consists of a single reference seq to a Seq[Any], a tree map that replaces each hole with index n with seq(n), applied to any arguments in the hole.

[+] override def run ( implicit ctx: Context ) : Unit