JSPrimitives

class JSPrimitives(ictx: Context) extends DottyPrimitives
Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

override def getPrimitive(sym: Symbol): Int

Return the code for the given symbol.

Return the code for the given symbol.

Definition Classes
override def getPrimitive(app: Apply, tpe: Type)(using 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.

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.

Value parameters:
fun

The method symbol

tpe

The type of the receiver object. It is used only for array operations

Definition Classes
override def isPrimitive(sym: Symbol): Boolean
Definition Classes
override def isPrimitive(fun: Tree): Boolean
Definition Classes