Unapply

tastyquery.Trees.Unapply
final case class Unapply(fun: TermTree, implicits: List[TermTree], patterns: List[PatternTree])(pos: SourcePosition) extends PatternTree

extractor(patterns) in a pattern:

Value parameters

fun

is extractor.unapply (or, for backwards compatibility, extractor.unapplySeq) possibly with type parameters

implicits

Any implicit parameters passed to the unapply after the selector

patterns

The argument patterns in the pattern match. It is typed with same type as first fun argument Given a match selector sel a pattern UnApply(fun, implicits, patterns) is roughly translated as follows val result = fun(sel)(implicits) if (result.isDefined) "match patterns against result"

Attributes

Graph
Supertypes
trait Serializable
class PatternTree
class Tree
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

final override def withPos(pos: SourcePosition): Unapply

Attributes

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def showBasic: String

Attributes

Inherited from:
Tree
final def showMultiline: String

Attributes

Inherited from:
Tree