Dotty Documentation

0.11.0-bin-SNAPSHOT

object Splicer
extends Object

Utility class to splice quoted expressions

[-] Constructors

[-] Members

[+] private abstract class AbstractInterpreter

Abstract Tree interpreter that can interpret calls to static methods with quoted or inline arguments

[+] private class CanBeInterpreted

Tree interpreter that tests if tree can be interpreted

[+] private class Interpreter

Tree interpreter that evaluates the tree

[+] def canBeSpliced ( tree: Tree ) ( implicit ctx: Context ) : Boolean

Check that the Tree can be spliced. ~'(xyz) becomes xyz and for ~xyz the tree of xyz is interpreted for which the resulting expression is returned as a Tree

See: Staging

[+] def splice ( tree: Tree , pos: SourcePosition , classLoader: ClassLoader ) ( implicit ctx: Context ) : Tree

Splice the Tree for a Quoted expression. ~'(xyz) becomes xyz and for ~xyz the tree of xyz is interpreted for which the resulting expression is returned as a Tree

See: Staging