Dotty Documentation

0.3.0-bin-SNAPSHOT

class SyntheticMethods

Synthetic method implementations for case classes, case objects, and value classes.

Selectively added to case classes/objects, unless a non-default implementation already exists: def equals(other: Any): Boolean def hashCode(): Int def canEqual(other: Any): Boolean def toString(): String def productElement(i: Int): Any def productArity: Int def productPrefix: String

Special handling: protected def readResolve(): AnyRef

Selectively added to value classes, unless a non-default implementation already exists: def equals(other: Any): Boolean def hashCode(): Int

[-] Constructors

SyntheticMethods ( thisTransformer: DenotTransformer )

[-] Members

[+] private var myCaseSymbols : List [ Symbol ]
[+] private var myValueSymbols : List [ Symbol ]
[+] private val thisTransformer : DenotTransformer
[+] def addSyntheticMethods ( impl: Template ) ( implicit ctx: Context ) : Template
[+] def caseSymbols ( implicit ctx: Context ) : List [ Symbol ]
[+] private def initSymbols ( implicit ctx: Context ) : Unit
[+] private def myCaseSymbols_= ( x$1: List [ Symbol ] ) : Unit
[+] private def myValueSymbols_= ( x$1: List [ Symbol ] ) : Unit
[+] def syntheticMethods ( clazz: ClassSymbol ) ( implicit ctx: Context ) : List [ Tree ]

The synthetic methods of the case or value class clazz.

[+] def valueSymbols ( implicit ctx: Context ) : List [ Symbol ]