O object

ExprSeq

extends Object with Serializable

Literal sequence of expressions

Supertypes

Object, Serializable

Members

def 

unapply

[T] ( expr: Expr[Seq[T]] ) ( implicit  qctx: QuoteContext ) : Option[Seq[Expr[T]]]

Matches a literal sequence of expressions and return a sequence of expressions.

Usage:

Matches a literal sequence of expressions and return a sequence of expressions.

Usage:

inline def sum(args: Int*): Int = ${ sumExpr('args) }
def sumExpr(argsExpr: Expr[Seq[Int]])(given QuoteContext): Expr[Int] = argsExpr match
  case ExprSeq(argExprs) =>
    // argExprs: Seq[Expr[Int]]
    ...
}