UnapplyArgs

dotty.tools.dotc.typer.Applications.UnapplyArgs
class UnapplyArgs(unapplyResult: Type, unapplyFn: Tree, unadaptedArgs: List[Tree], pos: SrcPos)(using x$5: Context)

A utility class that matches results of unapplys with patterns. Two queriable members: val argTypes: List[Type] def typedPatterns(qual: untpd.Tree, typer: Typer): List[Tree] TODO: Move into Applications trait. No need to keep it outside. But it's a large refactor, so do this when the rest is merged.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def typedPatterns(qual: Tree, typer: Typer): List[Tree]

The typed pattens of this unapply

The typed pattens of this unapply

Attributes

Concrete fields

The computed argument types which will be the scutinees of the sub-patterns.

The computed argument types which will be the scutinees of the sub-patterns.

Attributes