Dotty Documentation

0.15.0-bin-SNAPSHOT

class Hoister
extends Object

Defines methods for hoisting complex supercall arguments out of parent super calls and constructor definitions. Hoisted superarg methods are collected in superArgDefs

[-] Constructors

Hoister ( cls: Symbol )
Hoister ( implicit ctx: Context )

[-] Members

[+] private val cls : Symbol
[+] private implicit val ctx : Context
[+] val superArgDefs : ListBuffer [ DefDef ]
[+] private def hoistSuperArg ( arg: Tree , cdef: DefDef ) : Tree

If argument is complex, hoist it out into its own method and refer to the method instead.

[+] def hoistSuperArgsFromCall ( superCall: Tree , cdef: DefDef ) : Tree

Hoist complex arguments in super call out of the class.

[+] def hoistSuperArgsFromConstr ( stat: Tree ) : Tree

Hoist complex arguments in this-constructor call of secondary constructor out of the class.