UnapplyModule
scala.quoted.Quotes.reflectModule.UnapplyModule
trait UnapplyModule
Methods of the module object val Unapply.
Attributes
- Source
- Quotes.scala
- Graph
-
- Supertypes
- Self 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
def unapply(x: Quotes.this.reflectModule.this.Unapply): (Quotes.this.reflectModule.this.Term, List[Quotes.this.reflectModule.this.Term], List[Quotes.this.reflectModule.this.Tree])
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
Unapplyto match against
Attributes
- Source
- Quotes.scala
In this article