ValDefModule

Methods of the module object val ValDef

Source
Quotes.scala
class Object
trait Matchable
class Any

Value members

Abstract methods

def apply(symbol: Symbol, rhs: Option[Term]): ValDef
def copy(original: Tree)(name: String, tpt: TypeTree, rhs: Option[Term]): ValDef
def let(owner: Symbol, name: String, rhs: Term)(body: Ident => Term): Term

Creates a block { val = ; }

Creates a block { val = ; }

Source
Quotes.scala
def let(owner: Symbol, terms: List[Term])(body: List[Ident] => Term): Term

Creates a block { val x1 = ; ...; val xn = ; }

Creates a block { val x1 = ; ...; val xn = ; }

Source
Quotes.scala

Concrete methods

def let(owner: Symbol, rhs: Term)(body: Ident => Term): Term

Creates a block { val x = ; }

Creates a block { val x = ; }

Source
Quotes.scala