Dotty Documentation

0.11.0-bin-SNAPSHOT

class CollectTopLevelImports
extends Object with 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