CasePatMatchParser
class CasePatMatchParser(val rootParse: Parser)(using x$2: Quotes) extends Parser with PatternMatchingValues
trait PatternMatchingValues
trait QuatMaking
trait QuatMakingBase
trait Parser
class Object
trait Matchable
class Any
Type members
Inherited classlikes
Value members
Concrete methods
Inherited methods
protected
def betaReduceTupleFields(using Quotes, History)(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) }
- Inherited from
- PatternMatchingValues