Dotty Documentation


class CollectTopLevelImports
extends Phase

A phase that collects user defined top level imports.

These imports must be collected as typed trees and therefore after Typer.

[-] Constructors

CollectTopLevelImports ( )

[-] Members

[+] private var myImports : List [ Import ]
[+] def imports : List [ Import ]
[+] 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
[+] def run ( implicit ctx: Context ) : Unit