class Constructors
extends MiniPhaseTransform with IdentityDenotTransformer

This transform - moves initializers from body to constructor. - makes all supercalls explicit - also moves private fields that are accessed only from constructor into the constructor if possible.

Constructors

Constructors ( )

Members

[+] private final val MutableParamAccessor : R
[+] private val retainedPrivateVals : Set [ Symbol ]
[+] private val seenPrivateVals : Set [ Symbol ]
[+] override def checkPostCondition ( tree: Tree ) ( implicit ctx: Context ) : Unit

All initializers for non-lazy fields should be moved into constructor. All non-abstract methods should be implemented (this is assured for constructors

All initializers for non-lazy fields should be moved into constructor. All non-abstract methods should be implemented (this is assured for constructors in this phase and for other methods in memoize).

[+] private def markUsedPrivateSymbols ( tree: RefTree ) ( implicit ctx: Context ) : Unit
[+] private def mightBeDropped ( sym: Symbol ) ( implicit ctx: Context ) : Boolean

Class members that can be eliminated if referenced only from their own constructor.

Class members that can be eliminated if referenced only from their own constructor.

[+] private def noDirectRefsFrom ( tree: Tree ) ( implicit ctx: Context ) : Boolean
[+] 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:

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 runsAfter : Set [ Class [ Nothing <: Phase ] ]

List of names of phases that should precede this phase

List of names of phases that should precede this phase

[+] override def transformIdent ( tree: Ident ) ( implicit ctx: Context , info: TransformerInfo ) : Tree
[+] override def transformSelect ( tree: Select ) ( implicit ctx: Context , info: TransformerInfo ) : Tree
[+] override def transformTemplate ( tree: Template ) ( implicit ctx: Context , info: TransformerInfo ) : Tree
[+] override def transformValDef ( tree: ValDef ) ( implicit ctx: Context , info: TransformerInfo ) : Tree