ValOrDefDef

oxygen.meta.Meta.Tree.Statement.Definition.ValOrDefDef
See theValOrDefDef companion object
sealed trait ValOrDefDef extends Definition

Attributes

Companion
object
Graph
Supertypes
trait Definition
trait Statement
trait Tree
class Object
trait Matchable
class Any
Show all
Known subtypes
class DefDef
class ValDef

Members list

Value members

Concrete methods

def rhs: Option[Term]

The right-hand side of this val or def definition

The right-hand side of this val or def definition

Attributes

def tpt: TypeTree

The type tree of this val or def definition

The type tree of this val or def definition

Attributes

Inherited 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

Inherited from:
Tree
def asExprOf[A : Type]: Expr[A]

Attributes

Inherited from:
Tree
def asExprTyped[A]: Expr[A]

Attributes

Inherited from:
Tree
def isExpr: Boolean

Does this tree represent a valid expression?

Does this tree represent a valid expression?

Attributes

Inherited from:
Tree
def name: String

Attributes

Inherited from:
Definition
def pos: Position

Position in the source code

Position in the source code

Attributes

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

Shows the tree as String

Shows the tree as String

Attributes

Inherited from:
Tree
def symbol: Symbol

Symbol of defined or referred by this tree

Symbol of defined or referred by this tree

Attributes

Inherited from:
Tree

Abstract fields

val raw: quotes.reflect.ValOrDefDef