Expr [+T]
extends ObjectQuoted expression of type T
Supertypes
ObjectConstructors
Expr
( )Members
cast
[U] ( implicit tp: Type[U] ) ( implicit qctx: QuoteContext ) : Expr[U]Checked cast to a quoted.Expr[U]
Checked cast to a quoted.Expr[U]
getValue
[U] ( implicit qctx: QuoteContext , unlift: Unliftable[U] ) : Option[U]Return the value of this expression.
Returns None
if the expression does not contain a value or contains side effects.
Otherwise returns the Some
of the...
Return the value of this expression.
Returns None
if the expression does not contain a value or contains side effects.
Otherwise returns the Some
of the value.
matches
( that: Expr[Any] ) ( implicit qctx: QuoteContext ) : BooleanPattern matches this
against that
. Effectively performing a deep equality check.
It does the equivalent of
Pattern matches this
against that
. Effectively performing a deep equality check.
It does the equivalent of
this match
case '{...} => true // where the contents of the pattern are the contents of `that`
case _ => false
show
( implicit qctx: QuoteContext ) : StringShow a source code like representation of this expression without syntax highlight
Show a source code like representation of this expression without syntax highlight
show
( syntaxHighlight: SyntaxHighlight ) ( implicit qctx: QuoteContext ) : StringShow a source code like representation of this expression
Show a source code like representation of this expression
unlift
[U] ( implicit qctx: QuoteContext , unlift: Unliftable[U] ) : Option[U]Return the unlifted value of this expression.
Returns None
if the expression does not contain a value or contains side effects.
Otherwise returns the So...
Return the unlifted value of this expression.
Returns None
if the expression does not contain a value or contains side effects.
Otherwise returns the Some
of the value.
unliftOrError
[U] ( implicit qctx: QuoteContext , unlift: Unliftable[U] ) : UReturn the unlifted value of this expression.
Emits an error and throws if the expression does not contain a value or contains side effects. Otherwise r...
Return the unlifted value of this expression.
Emits an error and throws if the expression does not contain a value or contains side effects. Otherwise returns the value.
unseal
( implicit qctx: QuoteContext ) : TermView this expression quoted.Expr[T]
as a Term
View this expression quoted.Expr[T]
as a Term
value
[U] ( implicit qctx: QuoteContext , unlift: Unliftable[U] ) : UReturn the unlifted value of this expression.
Emits an error error and throws if the expression does not contain a value or contains side effects. Other...
Return the unlifted value of this expression.
Emits an error error and throws if the expression does not contain a value or contains side effects. Otherwise returns the value.