MatchModule

scala.quoted.Quotes.reflectModule.MatchModule
trait MatchModule

Methods of the module object val Match

Attributes

Source
Quotes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Match.type

Members list

Value members

Abstract methods

def apply(selector: Term, cases: List[CaseDef]): Match

Creates a pattern match <scrutinee: Term> match { <cases: List[CaseDef]> }

Creates a pattern match <scrutinee: Term> match { <cases: List[CaseDef]> }

Attributes

Source
Quotes.scala
def copy(original: Tree)(selector: Term, cases: List[CaseDef]): Match

Attributes

Source
Quotes.scala
def unapply(x: Match): (Term, List[CaseDef])

Matches a pattern match <scrutinee: Term> match { <cases: List[CaseDef]> }

Matches a pattern match <scrutinee: Term> match { <cases: List[CaseDef]> }

Attributes

Source
Quotes.scala