TreeMethods

Extension methods of Tree

Extensions

Extensions

extension (self: Tree)
def asExpr: Expr[Any]

Convert this tree to an quoted.Expr[Any] if the tree is a valid expression or throws

Does this tree represent a valid expression?

Position in the source code

def show(using Printer[Tree]): String

Shows the tree as String

Symbol of defined or referred by this tree

extension (self: Tree)
def asExprOf(using Type[T]): Expr[T]

Convert this tree to an quoted.Expr[T] if the tree is a valid expression or throws

extension (self: ThisTree)
def changeOwner[ThisTree <: Tree](newOwner: Symbol): ThisTree

Changes the owner of the symbols in the tree