JSPrimitives

dotty.tools.backend.sjs.JSPrimitives
See theJSPrimitives companion object
class JSPrimitives(ictx: Context) extends DottyPrimitives

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def getPrimitive(sym: Symbol): Int

Return the code for the given symbol.

Return the code for the given symbol.

Attributes

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

Attributes

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

Attributes

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

Attributes

Definition Classes