PatternMatchingValues
io.getquill.parser.ParserHelpers.PatternMatchingValues
trait PatternMatchingValues extends Parser, QuatMaking
Attributes
- Graph
-
- Supertypes
- Known subtypes
Members list
Type members
Classlikes
enum PatMatch
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
case SimpleClausecase MultiClause
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object PatMatchTerm
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PatMatchTerm.type
object ValDefTerm
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ValDefTerm.type
Inherited classlikes
object InferQuat
Attributes
- Inherited from:
- QuatMakingBase
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
protected def betaReduceTupleFields(using Quotes, History, TranspileConfig)(tupleTree: Term, fieldsTree: Tree, messageExpr: Option[Term])(bodyTree: Term): Ast
Beta-reduces out tuple members that have been pattern matched to their corresponding components For example: given: ptups := people.map(p => (p.name, p.age)) ptups.map { case (name, age) => fun(name, age) } becomes reduced to: ptups.map { x => fun(x.name, x.age) }
Beta-reduces out tuple members that have been pattern matched to their corresponding components For example: given: ptups := people.map(p => (p.name, p.age)) ptups.map { case (name, age) => fun(name, age) } becomes reduced to: ptups.map { x => fun(x.name, x.age) }
Attributes
Inherited methods
Attributes
- Inherited from:
- QuatMakingBase
Attributes
- Definition Classes
- Inherited from:
- QuatMaking
In this article