Dotty Documentation


class PatternMatcher
extends MiniPhase

The pattern matching transform. After this phase, the only Match nodes remaining in the code are simple switches where every pattern is an integer constant

[-] Constructors

PatternMatcher ( )

[-] Members

[+] override def phaseName : String

A name given to the Phase that can be used to debug the compiler. For instance, it is possible to print trees after a given phase using:

$ ./bin/dotc -Xprint:<phaseNameHere> sourceFile.scala
[+] override def runsAfter : Set [ String ]

List of names of phases that should precede this phase

[+] override def transformMatch ( tree: Match ) ( implicit ctx: Context ) : Tree