Term

oxygen.meta.Meta.Tree.Statement.Term
See theTerm companion object
sealed trait Term extends Statement

Attributes

Companion
object
Graph
Supertypes
trait Statement
trait Tree
class Object
trait Matchable
class Any
Known subtypes
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
Show all

Members list

Value members

Concrete methods

def appliedTo(arg: Term): Term

A unary apply node with given argument: tree(arg)

A unary apply node with given argument: tree(arg)

Attributes

def appliedTo(arg: Term, args: Term*): Term

An apply node with given arguments: tree(arg, args0, ..., argsN)

An apply node with given arguments: tree(arg, args0, ..., argsN)

Attributes

def appliedToArgs(args: List[Term]): Apply

An apply node with given argument list tree(args(0), ..., args(args.length - 1))

An apply node with given argument list tree(args(0), ..., args(args.length - 1))

Attributes

def appliedToArgss(argss: List[List[Term]]): Term

The current tree applied to given argument lists: tree (argss(0)) ... (argss(argss.length -1))

The current tree applied to given argument lists: tree (argss(0)) ... (argss(argss.length -1))

Attributes

The current tree applied to (): tree()

The current tree applied to (): tree()

Attributes

The current tree applied to given type argument: tree[targ]

The current tree applied to given type argument: tree[targ]

Attributes

def appliedToTypeTrees(targs: List[TypeTree]): Term

The current tree applied to given type argument list: tree[targs(0), ..., targs(targs.length - 1)]

The current tree applied to given type argument list: tree[targs(0), ..., targs(targs.length - 1)]

Attributes

def appliedToTypes(targs: List[TypeRepr]): Term

The current tree applied to given type arguments: tree[targ0, ..., targN]

The current tree applied to given type arguments: tree[targ0, ..., targN]

Attributes

def etaExpand(owner: Symbol): Term

Converts a partially applied term into a lambda expression

Converts a partially applied term into a lambda expression

Attributes

def select(sym: Symbol): Select

A select node that selects the given symbol.

A select node that selects the given symbol.

Attributes

def tpe: TypeRepr

TypeRepr of this term

TypeRepr of this term

Attributes

Replace Ident nodes references to the underlying tree that defined them. The resulting tree is useful for inspection of the definition of some bindings.

Replace Ident nodes references to the underlying tree that defined them. The resulting tree is useful for inspection of the definition of some bindings.

Warning: This tree may contain references that are out of scope and should not be used in the generated code. This method should only used to port Scala 2 that used to access their outer scope unsoundly.

Attributes

Replace Inlined nodes and InlineProxy references to underlying arguments. The resulting tree is useful for inspection of the value or content of a non-inline argument.

Replace Inlined nodes and InlineProxy references to underlying arguments. The resulting tree is useful for inspection of the value or content of a non-inline argument.

Warning: This tree may contain references that are out of scope and should not be used in the generated code. This method should only used to port Scala 2 that used to access their outer scope unsoundly.

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 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

override val raw: quotes.reflect.Term