Dotty Documentation

0.6.0-bin-SNAPSHOT

class Flatten
extends MiniPhase with SymTransformer

Lift nested classes to toplevel

[-] Constructors

Flatten ( )

[-] Members

[+] private var LiftedDefs : Location [ ListBuffer [ Tree ] ]
[+] private def LiftedDefs_= ( x$1: Location [ ListBuffer [ Tree ] ] ) : Unit
[+] override def changesMembers : Boolean

Can this transform create or delete non-private members?

[+] override def initContext ( ctx: FreshContext ) : Unit
[+] private def liftIfNested ( tree: Tree ) ( implicit ctx: Context ) : Tree
[+] private def liftedDefs ( implicit ctx: Context ) : ListBuffer [ Tree ]
[+] 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 prepareForPackageDef ( tree: PackageDef ) ( implicit ctx: Context ) : Context
[+] override def transformStats ( stats: List [ Tree ] ) ( implicit ctx: Context ) : List [ Tree ]
[+] def transformSym ( ref: SymDenotation ) ( implicit ctx: Context ) : SymDenotation
[+] override def transformTypeDef ( tree: TypeDef ) ( implicit ctx: Context ) : Tree