object jsInterop
global javascript interop related helpers
- Alphabetic
- By Inheritance
- jsInterop
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
sealed
trait
ExportInfo extends AnyRef
Info for a non-member export.
- sealed abstract class JSCallingConvention extends AnyRef
- sealed abstract class JSName extends AnyRef
- case class StaticExportInfo(jsName: String)(pos: scala.tools.nsc.Global.Position) extends ExportInfo with Product with Serializable
- case class TopLevelExportInfo(moduleID: String, jsName: String)(pos: scala.tools.nsc.Global.Position) extends ExportInfo with Product with Serializable
Value Members
- def clearGlobalState(): Unit
- def defaultJSNameOf(sym: scala.tools.nsc.Global.Symbol): String
-
def
isExport(sym: scala.tools.nsc.Global.Symbol): Boolean
checks if the given symbol is a JSExport
-
def
isJSBracketAccess(sym: scala.tools.nsc.Global.Symbol): Boolean
has this symbol to be translated into a JS bracket access (JS to Scala)
-
def
isJSBracketCall(sym: scala.tools.nsc.Global.Symbol): Boolean
has this symbol to be translated into a JS bracket call (JS to Scala)
-
def
isJSGetter(sym: scala.tools.nsc.Global.Symbol): Boolean
has this symbol to be translated into a JS getter (both directions)?
- def isJSProperty(sym: scala.tools.nsc.Global.Symbol): Boolean
-
def
isJSSetter(sym: scala.tools.nsc.Global.Symbol): Boolean
has this symbol to be translated into a JS setter (both directions)?
-
def
jsExportInfo(name: scala.tools.nsc.Global.Name): (String, Boolean)
retrieves the originally assigned jsName of this export and whether it is a property
-
def
jsNameOf(sym: scala.tools.nsc.Global.Symbol): JSName
Gets the unqualified JS name of a symbol.
Gets the unqualified JS name of a symbol.
If it is not explicitly specified with an
@JSName
annotation, the JS name is inferred from the Scala name. -
def
jsNativeLoadSpecOf(sym: scala.tools.nsc.Global.Symbol): JSNativeLoadSpec
Gets the JS native load spec of a symbol in the current compilation run.
-
def
jsNativeLoadSpecOfOption(sym: scala.tools.nsc.Global.Symbol): Option[JSNativeLoadSpec]
Gets the JS native load spec of a symbol in the current compilation run, if it has one.
- def jsclassAccessorFor(clazz: scala.tools.nsc.Global.Symbol): scala.tools.nsc.Global.Symbol
- def registerStaticExports(sym: scala.tools.nsc.Global.Symbol, infos: List[StaticExportInfo]): Unit
- def registerTopLevelExports(sym: scala.tools.nsc.Global.Symbol, infos: List[TopLevelExportInfo]): Unit
-
def
scalaExportName(jsName: String, isProp: Boolean): scala.tools.nsc.Global.TermName
creates a name for an export specification
- def staticExportsOf(sym: scala.tools.nsc.Global.Symbol): List[StaticExportInfo]
-
def
storeJSNativeLoadSpec(sym: scala.tools.nsc.Global.Symbol, spec: JSNativeLoadSpec): Unit
Stores the JS native load spec of a symbol for the current compilation run.
- def topLevelExportsOf(sym: scala.tools.nsc.Global.Symbol): List[TopLevelExportInfo]
- object JSCallingConvention
- object JSName