EmptyTupleFromExpr

scala.quoted.FromExpr$.EmptyTupleFromExpr$
object EmptyTupleFromExpr extends FromExpr[EmptyTuple.type]

Default implementation of FromExpr[EmptyTuple]

  • Transform '{EmptyTuple} into Some(EmptyTuple)
  • Otherwise returns None

Attributes

Graph
Supertypes
trait FromExpr[EmptyTuple.type]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def unapply(x: Expr[EmptyTuple.type])(using Quotes): Option[EmptyTuple.type]

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.

Attributes