Dotty Documentation


class ElimJavaPackages
extends MiniPhaseTransform

Eliminates syntactic references to Java packages, so that there's no chance they accidentally end up in the backend.

[-] Constructors

ElimJavaPackages ( )

[-] 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 isJavaPackage ( tree: Select ) ( implicit ctx: Context ) : Boolean

Is the given tree a syntactic reference to a Java 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 , info: TransformerInfo ) : Tree