scala / 3.1 / scala / quoted / quotes$reflectmodule$termmethods.html

Trait scala.quoted.TermMethods

trait TermMethods

Extension methods of Term

Supertypes

Extensions

extension (self: Term)

Source
def appliedTo(arg: Term): Term

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

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

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

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

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

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

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

Source

The current tree applied to (): tree()

Source

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

Source

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

Source

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

Source
def etaExpand(owner: Symbol): Term

Converts a partially applied term into a lambda expression

Source
def select(sym: Symbol): Select

A select node that selects the given symbol.

Source
def tpe: TypeRepr

TypeRepr of this term

Source

Replace Ident nodes references to the underlying tree that defined them

Source

Replace Inlined nodes and InlineProxy references to underlying arguments

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/quoted/Quotes$reflectModule$TermMethods.html