Dotty Documentation

0.11.0-bin-SNAPSHOT

abstract class AccessProxies
extends Object

A utility class for generating access proxies. Currently used for inline accessors and protected accessors.

[-] Constructors

AccessProxies ( )

[-] Members

[+] trait Insert
[+] private val accessedBy : MutableSymbolMap [ Symbol ]

accessor -> accessed

[+] private def accessorDefs ( cls: Symbol ) ( implicit ctx: Context ) : Iterator [ DefDef ]

The accessor definitions that need to be added to class cls As a side-effect, this method removes entries from the accessedBy map. So a second call of the same method will yield the empty list.

[+] def addAccessorDefs ( cls: Symbol , body: List [ Tree ] ) ( implicit ctx: Context ) : List [ Tree ]

Add all needed accessors to the body of class cls

[+] protected def passReceiverAsArg ( accessorName: Name ) ( implicit ctx: Context ) : Boolean

Given the name of an accessor, is the receiver of the call to accessed obtained as a parameterer?