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
Quotes.this.reflectModule.this.Match.type

Members list

Value members

Abstract methods

def apply(selector: Quotes.this.reflectModule.this.Term, cases: List[Quotes.this.reflectModule.this.CaseDef]): Quotes.this.reflectModule.this.Match

Creates a pattern match match { }.

Creates a pattern match match { }.

Value parameters

cases

the list of case definitions

selector

the scrutinee expression being matched

Attributes

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

Attributes

Source
Quotes.scala

Matches a pattern match match { }.

Matches a pattern match match { }.

Value parameters

x

the Match to match against

Attributes

Source
Quotes.scala