Dotty Documentation

0.2.0-bin-SNAPSHOT

class PatternMatcher
extends MiniPhaseTransform with DenotTransformer

This phase rewrites pattern matches. FIXME: A more detailed explanation would be good.

[-] Constructors

PatternMatcher ( )

[-] Members

[+] class Translator
[+] private var _id : Int
[+] private def _id_= ( x$1: Int ) : Unit
[+] 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 [ Class [ Nothing <: Phase ] ]

List of names of phases that should precede this phase

[+] override def runsAfterGroupsOf : Set [ Class [ Nothing <: Phase ] ]

List of names of phases that should have finished their processing of all compilation units before this phase starts

[+] override def transform ( ref: SingleDenotation ) ( implicit ctx: Context ) : SingleDenotation

The transformation method

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