Splicer

object Splicer

Utility class to splice quoted expressions

class Object
trait Matchable
class Any

Type members

Classlikes

object Call

Value members

Concrete methods

def checkEscapedVariables(tree: Tree, expansionOwner: Symbol)(using Context): tree

Checks that no symbol that whas generated within the macro expansion has an out of scope reference

Checks that no symbol that whas generated within the macro expansion has an out of scope reference

def checkValidMacroBody(tree: Tree)(using Context): Unit

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

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, splicePos: SrcPos, spliceExpansionPos: SrcPos, classLoader: ClassLoader)(using 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

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