Dotty Documentation

0.9.0-bin-SNAPSHOT

object PickledQuotes
extends Object

[-] Constructors

[-] Members

[+] private def classTagToTypeTree ( ct: ClassTag [ Nothing <: Any ] ) ( implicit ctx: Context ) : TypeTree
[+] private def classToType ( clazz: Class [ Nothing <: Any ] ) ( implicit ctx: Context ) : Type
[+] private def encapsulateQuote ( tree: Tree ) ( implicit ctx: Context ) : Tree

Encapsulate the tree in a top level val or type <tree> ==> package _root_ { val $quote: Any = <tree> } or <type tree> ==> package _root_ { val $typeQuote: Any = null.asInstanceOf[<tree>] }

[+] private def functionAppliedTo ( f: Tree , x: Tree ) ( implicit ctx: Context ) : Tree
[+] private def pickle ( tree: Tree ) ( implicit ctx: Context ) : Array [ Byte ]

Pickle tree into it's TASTY bytes s

[+] def pickleQuote ( tree: Tree ) ( implicit ctx: Context ) : Pickled

Pickle the quote into strings

[+] def quotedExprToTree ( expr: Expr [ T ] ) ( implicit ctx: Context ) : Tree

Transform the expression into its fully spliced Tree

[+] def quotedTypeToTree ( expr: Type [ Nothing <: Any ] ) ( implicit ctx: Context ) : Tree

Transform the expression into its fully spliced TypeTree

[+] private def unpickle ( bytes: Array [ Byte ] , splices: Seq [ Any ] ) ( implicit ctx: Context ) : Tree

Unpickle TASTY bytes into it's tree

[+] private def unpickleExpr ( expr: TastyExpr [ Nothing <: Any ] ) ( implicit ctx: Context ) : Tree

Unpickle the tree contained in the TastyExpr

[+] private def unpickleType ( ttpe: TastyType [ Nothing <: Any ] ) ( implicit ctx: Context ) : Tree

Unpickle the tree contained in the TastyType