O object

Expr

extends Object with Serializable

Supertypes

Object, Serializable

Members

class 

AsContextualFunction

[F, Args, R]

class 

AsFunction

[F, Args, R]

type 

TupleOfExpr

 = Map[Tup,implicit QuoteContext => Expr[X]]

Converts a tuple (T1, ..., Tn) to (Expr[T1], ..., Expr[Tn])

Converts a tuple (T1, ..., Tn) to (Expr[T1], ..., Expr[Tn])

def 

block

[T] ( statements: List[Expr[Nothing <: Any]] expr: Expr[T] ) ( implicit  qctx: QuoteContext ) : Expr[T]

Returns an expression containing a block with the given statements and ending with the expresion Given list of statements s1 :: s2 :: ... :: Nil and an...

Returns an expression containing a block with the given statements and ending with the expresion Given list of statements s1 :: s2 :: ... :: Nil and an expression e the resulting expression will be equivalent to '{ $s1; $s2; ...; $e }.

def 

nullExpr

: implicit QuoteContext => Expr[Null]

Returns a null expresssion equivalent to '{null}

Returns a null expresssion equivalent to '{null}

def 

ofList

[T] ( xs: Seq[Expr[T]] ) ( implicit  x$2: Type[T] x$3: QuoteContext ) : Expr[List[T]]

Lifts this list of expressions into an expression of a list

Transforms a list of expression List(e1, e2, ...) where ei: Expr[T] to an expression equivale...

Lifts this list of expressions into an expression of a list

Transforms a list of expression List(e1, e2, ...) where ei: Expr[T] to an expression equivalent to '{ List($e1, $e2, ...) } typed as an Expr[List[T]]

def 

ofSeq

[T] ( xs: Seq[Expr[T]] ) ( implicit  tp: Type[T] qctx: QuoteContext ) : Expr[Seq[T]]

Lifts this sequence of expressions into an expression of a sequence

Transforms a sequence of expression Seq(e1, e2, ...) where ei: Expr[T] to an expressi...

Lifts this sequence of expressions into an expression of a sequence

Transforms a sequence of expression Seq(e1, e2, ...) where ei: Expr[T] to an expression equivalent to '{ Seq($e1, $e2, ...) } typed as an Expr[Seq[T]]

Usage:

'{ List(${Expr.ofSeq(List(1, 2, 3))}: _*) } // equvalent to '{ List(1, 2, 3) }
def 

ofTuple

( seq: Seq[Expr[Nothing <: Any]] ) ( implicit  x$2: QuoteContext ) : Expr[Tuple]

Lifts this sequence of expressions into an expression of a tuple

Transforms a sequence of expression Seq(e1, e2, ...) where ei: Expr[_] to an expression...

Lifts this sequence of expressions into an expression of a tuple

Transforms a sequence of expression Seq(e1, e2, ...) where ei: Expr[_] to an expression equivalent to '{ ($e1, $e2, ...) } typed as an Expr[Tuple]

def 

ofTuple

[T] ( tup: T ) ( implicit  evidence$7: IsMappedBy[T] evidence$8: Type[T] ctx: QuoteContext ) : Expr[InverseMap[T,Expr[+T]]]

Given a tuple of the form (Expr[A1], ..., Expr[An]), outputs a tuple Expr[(A1, ..., An)].

Given a tuple of the form (Expr[A1], ..., Expr[An]), outputs a tuple Expr[(A1, ..., An)].

def 

unitExpr

: implicit QuoteContext => Expr[Unit]

Returns a unit expresssion equivalent to '{} or '{()}

Returns a unit expresssion equivalent to '{} or '{()}