Dotty Documentation


class GetClass
extends MiniPhase

Rewrite getClass calls as follow:

For every instance of primitive class C whose boxed class is called B: instanceC.getClass -> B.TYPE For every instance of non-primitive class D: instanceD.getClass -> instanceD.getClass

[-] Constructors

GetClass ( )

[-] 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 transformApply ( tree: Apply ) ( implicit ctx: Context ) : Tree