DefDef

oxygen.meta.Meta.Tree.Statement.Definition.DefDef
See theDefDef companion object
final case class DefDef(raw: quotes.reflect.DefDef) extends ValOrDefDef

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ValOrDefDef
trait Definition
trait Statement
trait Tree
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

List of leading type parameters or Nil if the method does not have leading type parameters.

List of leading type parameters or Nil if the method does not have leading type parameters.

Note: Non leading type parameters can be found in extension methods such as

type A
type T
extension (a: A) def f[T]() = ???

Attributes

def paramss: List[ParamClause]

List of type and term parameter clauses

List of type and term parameter clauses

Attributes

The tree of the return type of this def definition

The tree of the return type of this def definition

Attributes

List of term parameter clauses

List of term parameter clauses

Attributes

List of parameter clauses following the leading type parameters or all clauses. Return all parameter clauses if there are no leading type parameters.

List of parameter clauses following the leading type parameters or all clauses. Return all parameter clauses if there are no leading type parameters.

Non leading type parameters can be found in extension methods such as

type T
type A
extension (a: A) def f[T]() = ???

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 productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
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

Inherited from:
ValOrDefDef
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
def tpt: TypeTree

The type tree of this val or def definition

The type tree of this val or def definition

Attributes

Inherited from:
ValOrDefDef