ExprMap

scala.quoted.ExprMap
trait ExprMap

Attributes

Source
ExprMap.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def transform[T](e: Expr[T])(using Type[T])(using Quotes): Expr[T]

Maps an expression e with a type T. Requires a given Type[T] instance for staging and a Quotes instance for access to the reflection API.

Maps an expression e with a type T. Requires a given Type[T] instance for staging and a Quotes instance for access to the reflection API.

Type parameters

T

the type of the expression being transformed

Value parameters

e

the expression to transform

Attributes

Source
ExprMap.scala

Concrete methods

def transformChildren[T](e: Expr[T])(using Type[T])(using Quotes): Expr[T]

Maps the sub-expressions of an expression e with type T. Requires a given Type[T] instance for staging and a Quotes instance for access to the reflection API.

Maps the sub-expressions of an expression e with type T. Requires a given Type[T] instance for staging and a Quotes instance for access to the reflection API.

Type parameters

T

the type of the expression whose children are transformed

Value parameters

e

the expression whose direct sub-expressions will be transformed via transform

Attributes

Source
ExprMap.scala