Dotty Documentation

0.5.0-bin-SNAPSHOT

class Flatten
extends MiniPhaseTransform with SymTransformer

Lift nested classes to toplevel

[-] Constructors

Flatten ( )

[-] Members

[+] private var liftedDefs : ListBuffer [ Tree ]
[+] private var liftedDefsQueue : List [ ListBuffer [ Tree ] ]
[+] override def changesMembers : Boolean

Can this transform create or delete non-private members?

[+] private def liftIfNested ( tree: Tree ) ( implicit ctx: Context , info: TransformerInfo ) : 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 ) : TreeTransform
[+] override def transformPackageDef ( tree: PackageDef ) ( implicit ctx: Context , info: TransformerInfo ) : Tree
[+] override def transformStats ( stats: List [ Tree ] ) ( implicit ctx: Context , info: TransformerInfo ) : List [ Tree ]
[+] def transformSym ( ref: SymDenotation ) ( implicit ctx: Context ) : SymDenotation
[+] override def transformTypeDef ( tree: TypeDef ) ( implicit ctx: Context , info: TransformerInfo ) : Tree