Tree

oxygen.meta.Meta.Tree
See theTree companion object
sealed trait Tree

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Alternatives
class Bind
class CaseDef
trait Statement
trait Definition
class ClassDef
class TypeDef
trait ValOrDefDef
class DefDef
class ValDef
class Export
class Import
trait Term
class Apply
class Assign
class Block
class Closure
class If
class Inlined
class Literal
class Match
class NamedArg
class New
trait Ref
trait Ident
class Other
class Wildcard
class Select
class Repeated
class Return
class SelectOuter
class SummonFrom
class Super
class This
class Try
class TypeApply
class While
class Typed
class TypeCaseDef
trait TypeTree
class Annotated
class Applied
class ByName
class Inferred
class Refined
class Singleton
class TypeBind
class TypeBlock
class TypeIdent
class TypeSelect
trait TypedOrTest
class Unapply
Show all

Members list

Value members

Concrete methods

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 asExprOf[A : Type]: Expr[A]
def asExprTyped[A]: Expr[A]
def isExpr: Boolean

Does this tree represent a valid expression?

Does this tree represent a valid expression?

Attributes

def pos: Position

Position in the source code

Position in the source code

Attributes

def show(using quotes.reflect.Printer[quotes.reflect.Tree]): String

Shows the tree as String

Shows the tree as String

Attributes

def symbol: Symbol

Symbol of defined or referred by this tree

Symbol of defined or referred by this tree

Attributes

Abstract fields

val raw: quotes.reflect.Tree