Dotty Documentation

0.18.0-bin-SNAPSHOT

trait ValueOfExpr [ T ]
extends Object

A typeclass for types that can be turned from a quoted.Expr[T] to a T

[-] Constructors

[-] Members

[+] def apply ( x: Expr [ T ] ) ( implicit x$2: QuoteContext ) : Option [ T ]

Return the value of the expression.

Returns None if the expression does not contain a value or contains side effects. Otherwise returns the Some of the value.