Dotty Documentation


class LinkScala2Impls
extends DotClass with MiniPhase with IdentityDenotTransformer

Rewrite calls


where M is a Scala 2.11 trait implemented by the current class to

M$class.f(this, args)

provided the implementation class M$class defines a corresponding function f. If M is a Scala 2.12 or newer trait, rewrite to

M.f(this, args)

where f is a static member of M.

[-] Constructors

LinkScala2Impls ( )

[-] Members

[+] class Transform
[+] private val Scala2xTrait : R
[+] val treeTransform : TreeTransform
[+] 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
[+] override def runsAfterGroupsOf : Set [ Class [ Nothing <: Phase ] ]

List of names of phases that should have finished their processing of all compilation units before this phase starts