NilFromExpr

object NilFromExpr extends FromExpr[Nil]

Default implementation of FromExpr[Nil]

  • Transform '{Nil} into Some(Nil)
  • Otherwise returns None
trait FromExpr[Nil]
class Object
trait Matchable
class Any

Value members

Concrete methods

def unapply(x: Expr[Nil])(using Quotes): Option[Nil]

Return the value of the expression.

Return the value of the expression.

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