JSExportsGen

dotty.tools.backend.sjs.JSExportsGen
final class JSExportsGen(jsCodeGen: JSCodeGen)(using x$2: Context)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

sealed trait ExportInfo

Info for a non-member export.

Info for a non-member export.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
abstract class Exported(val sym: Symbol, val params: IndexedSeq[JSParamInfo])

Attributes

Supertypes
class Object
trait Matchable
class Any
class FormalArgsRegistry(val minArgc: Int, needsRestParam: Boolean)

Attributes

Supertypes
class Object
trait Matchable
class Any
final case class StaticExportInfo(jsName: String)(pos: SourcePosition) extends ExportInfo

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExportInfo
class Object
trait Matchable
class Any
Show all
final case class TopLevelExportInfo(moduleID: String, jsName: String)(pos: SourcePosition) extends ExportInfo

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExportInfo
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def genCallDefaultGetter(sym: Symbol, paramIndex: Int, static: Boolean, captures: List[Tree])(previousArgsValues: Int => List[Tree])(implicit pos: SourcePosition): Tree
def genJSClassDispatchers(classSym: Symbol, dispatchMethodsNames: List[JSName]): List[MemberDef]

Generates exported methods and properties for a class.

Generates exported methods and properties for a class.

Value parameters

classSym

symbol of the class we export for

Attributes

def genOverloadDispatch(jsName: JSName, alts: List[Exported], tpe: Type)(using pos: SourcePosition): (List[ParamDef], Option[ParamDef], Tree)
def genScalaArg(exported: Exported, paramIndex: Int, formalArgsRegistry: FormalArgsRegistry, param: JSParamInfo, static: Boolean, captures: List[Tree])(previousArgsValues: Int => List[Tree])(implicit pos: SourcePosition): Tree

Generates a Scala argument from dispatched JavaScript arguments (unboxing and default parameter handling).

Generates a Scala argument from dispatched JavaScript arguments (unboxing and default parameter handling).

Attributes