TreeMethods

scala.quoted.runtime.impl.QuotesImpl.reflect$.TreeMethods$
object TreeMethods extends TreeMethods

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Extensions

Extensions

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

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

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

Attributes

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

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

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

Attributes

def isExpr: Boolean

Does this tree represent a valid expression?

Does this tree represent a valid expression?

Attributes

Position in the source code

Position in the source code

Attributes

def show(using printer: Printer[Tree]): String

Shows the tree as String

Shows the tree as String

Attributes

Symbol of defined or referred by this tree

Symbol of defined or referred by this tree

Attributes

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

Changes the owner of the symbols in the tree

Changes the owner of the symbols in the tree

Attributes