Factory methods used by TreeMakers to make the actual trees.
Segregating this super hacky CPS code.
Optimize and analyze matches based on their TreeMaker-representation.
Translate typed Trees that represent pattern matches into the patternmatching IR, defined by TreeMakers.
Translate our IR (TreeMakers) into actual Scala Trees using the factory methods in MatchCodeGen.
An extractor returns: F1, F2, ..., Fi, opt[Seq[E] or E*] A case matches: P1, P2, ..., Pj, opt[Seq[E]] Put together: P1/F1, P2/F2, ...
Translate pattern matching.
This is scalac-specific logic layered on top of the scalac-agnostic "matching products to patterns" logic defined in PatternExpander.