Dotty Documentation

0.2.0-bin-SNAPSHOT

class CollectSuperCalls
extends MiniPhaseTransform

Collect all super calls to trait members.

For each super reference to trait member, register a call from the current class to the owner of the referenced member.

This information is used to know if it is safe to remove a redundant mixin class. A redundant mixin class is one that is implemented by another mixin class. As the methods in a redundant mixin class could be implemented with a default abstract method, the redundant mixin class could be required as a parent by the JVM.

[-] Constructors

CollectSuperCalls ( )

[-] Members

[+] 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 registerSuperCall ( sym: ClassSymbol , calls: ClassSymbol ) ( implicit ctx: Context ) : Any
[+] override def transformSelect ( tree: Select ) ( implicit ctx: Context , info: TransformerInfo ) : Tree