Dotty Documentation


class ElimPackagePrefixes
extends MiniPhase

Eliminates syntactic references to package terms as prefixes of classes, so that there's no chance they accidentally end up in the backend.

[-] Constructors

ElimPackagePrefixes ( )

[-] 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.

[+] private def isPackageClassRef ( tree: Select ) ( implicit ctx: Context ) : Boolean

Is the given tree a reference to a type in a package?

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