Dotty Documentation

0.5.0-bin-SNAPSHOT

class Varify
extends Object with Optimisation

Inline val with exactly one assignment to a var. For example:

{ val l = // code that may use l var r = l // code not using l }

becomes:

{ var r = // code that may use l // code not using l }

[-] Constructors

Varify ( )

[-] Members

[+] val paramsTimesUsed : HashMap [ Symbol, Int ]
[+] val possibleRenames : HashMap [ Symbol, Set [ Symbol ] ]
[+] def clear ( ) : Unit

Clears all the state of this optimisation, to be run last.

[+] def transformer ( implicit ctx: Context ) : Tree => Tree

Does the actual Tree => Tree transformation.

[+] def visitor ( implicit ctx: Context ) : Tree => Unit

Gathers information on trees (using mutation), to be run first.