Dotty Documentation

0.4.0-bin-SNAPSHOT

class RestoreScopes
extends MiniPhaseTransform with IdentityDenotTransformer

The preceding lambda lift and flatten phases move symbols to different scopes and rename them. This miniphase cleans up afterwards and makes sure that all class scopes contain the symbols defined in them.

[-] Constructors

RestoreScopes ( )

[-] Members

[+] override def changesMembers : Boolean

Can this transform create or delete non-private members?

[+] 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
[+] private def restoreScope ( tree: Tree ) ( implicit ctx: Context , info: TransformerInfo ) : Tree
[+] override def transformPackageDef ( pdef: PackageDef ) ( implicit ctx: Context , info: TransformerInfo ) : Tree