UnapplyModule

scala.quoted.Quotes.reflectModule.UnapplyModule

Methods of the module object val Unapply.

Attributes

Source
Quotes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Quotes.this.reflectModule.this.Unapply.type

Members list

Value members

Abstract methods

def apply(fun: Quotes.this.reflectModule.this.Term, implicits: List[Quotes.this.reflectModule.this.Term], patterns: List[Quotes.this.reflectModule.this.Tree]): Quotes.this.reflectModule.this.Unapply

Creates an Unapply tree representing a pattern ()(using ).

Creates an Unapply tree representing a pattern ()(using ).

Value parameters

fun

the extractor function

implicits

the implicit arguments passed to the extractor

patterns

the list of nested patterns

Attributes

Source
Quotes.scala
def copy(original: Quotes.this.reflectModule.this.Tree)(fun: Quotes.this.reflectModule.this.Term, implicits: List[Quotes.this.reflectModule.this.Term], patterns: List[Quotes.this.reflectModule.this.Tree]): Quotes.this.reflectModule.this.Unapply

Copies an Unapply tree representing a pattern ()(using ).

Copies an Unapply tree representing a pattern ()(using ).

Value parameters

fun

the extractor function

implicits

the implicit arguments passed to the extractor

original

the original tree being copied

patterns

the list of nested patterns

Attributes

Source
Quotes.scala

Matches an Unapply(fun, implicits, patterns) tree representing a pattern ()(using ).

Matches an Unapply(fun, implicits, patterns) tree representing a pattern ()(using ).

Value parameters

x

the Unapply to match against

Attributes

Source
Quotes.scala