Dotty Documentation


class TransformWildcards

This phase transforms wildcards in valdefs with their default value. In particular for every valdef that is declared: val x : T = _ to val x : T = <zero of T>

[-] Constructors

TransformWildcards ( )

[-] Members

[+] override def checkPostCondition ( tree: Tree ) ( implicit ctx: Context ) : Unit

Check what the phase achieves, to be called at any point after it is finished.

[+] 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 transformValDef ( tree: ValDef ) ( implicit ctx: Context ) : Tree