Dotty Documentation

0.17.0-bin-SNAPSHOT

object Expr
extends Object with Serializable

[-] Constructors

[-] Members

[+] class AsFunction
[+] class ExprOps
[+] type TupleOfExpr = Map [ Tup, Expr [ +T ] ]

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

[+] def block ( 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 expression e the resulting expression will be equivalent to '{ $s1; $s2; ...; $e }.

[+] def nullExpr ( implicit qctx: QuoteContext ) : Expr [ Null ]

Returns a null expresssion equivalent to '{null}

[+] def unitExpr ( implicit qctx: QuoteContext ) : Expr [ Unit ]

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