class GetClass
extends MiniPhaseTransform

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:

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

List of names of phases that should precede this phase

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