Dotty Documentation

0.13.0-bin-SNAPSHOT

class JSPrimitives
extends DottyPrimitives

[-] Constructors

JSPrimitives ( ctx: Context )

[-] Members

[+] private val ctx : Context
[+] private lazy val jsPrimitives : Map [ Symbol, Int ]
[+] override def getPrimitive ( sym: Symbol ) : Int

Return the code for the given symbol.

[+] override def getPrimitive ( app: Apply , tpe: Type ) ( implicit ctx: Context ) : Int

Return the primitive code of the given operation. If the operation is an array get/set, we inspect the type of the receiver to demux the operation.

[+] private def initJSPrimitives ( implicit ctx: Context ) : Map [ Symbol, Int ]

Initialize the primitive map

[+] override def isPrimitive ( fun: Tree ) : Boolean