ExprMatchModule (original) (raw)

scala.quoted.runtime.QuoteMatching.ExprMatchModule

Members list

Pattern matches an the scrutineeExpr against the patternExpr and returns a tuple with the matched holes if successful.

Pattern matches an the scrutineeExpr against the patternExpr and returns a tuple with the matched holes if successful.

Examples:

Holes:

Value parameters

pattern

Expr[Any] containing the pattern tree

scrutinee

Expr[Any] on which we are pattern matching

Attributes

Returns

None if it did not match, Some(tup) if it matched where tup contains `Expr[Ti]``

Source

QuoteMatching.scala

In this article