org.scalajs.nscplugin

PrepJSInterop

Related Docs: object PrepJSInterop | package nscplugin

abstract class PrepJSInterop extends PluginComponent with PrepJSExports with Transform with CompatComponent

Prepares classes extending js.Any for JavaScript interop

This phase does: - Sanity checks for js.Any hierarchy - Annotate subclasses of js.Any to be treated specially - Rewrite calls to scala.Enumeration.Value (include name string) - Create JSExport methods: Dummy methods that are propagated through the whole compiler chain to mark exports. This allows exports to have the same semantics than methods.

Linear Supertypes
CompatComponent, Transform, PrepJSExports, PluginComponent, SubComponent, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PrepJSInterop
  2. CompatComponent
  3. Transform
  4. PrepJSExports
  5. PluginComponent
  6. SubComponent
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PrepJSInterop()

Type Members

  1. case class ExportInfo(jsName: String, destination: (jsAddons)#ExportDestination)(pos: scala.tools.nsc.Global.Position) extends JSGlobalAddons.jsInterop.ExportInfo with Product with Serializable

    Definition Classes
    PrepJSExports
  2. implicit final class GlobalCompat extends AnyRef

    Definition Classes
    CompatComponent
  3. class JSInteropPhase extends Phase

  4. class JSInteropTransformer extends scala.tools.nsc.Global.Transformer

  5. class Phase extends scala.tools.nsc.transform.Transform.StdPhase

    Definition Classes
    Transform
  6. type SAMFunctionCompat = SAMFunction

    Definition Classes
    CompatComponent
  7. implicit final class SAMFunctionCompatOps extends AnyRef

    Definition Classes
    CompatComponent
  8. abstract class StdPhase extends GlobalPhase

    Definition Classes
    SubComponent
  9. implicit final class StdTermNamesCompat extends AnyRef

    Definition Classes
    CompatComponent
  10. implicit final class StdTypeNamesCompat extends AnyRef

    Definition Classes
    CompatComponent
  11. implicit final class SymbolCompat extends AnyRef

    Definition Classes
    CompatComponent

Abstract Value Members

  1. abstract val global: Global

    Definition Classes
    CompatComponent
  2. abstract val jsAddons: JSGlobalAddons { val global: PrepJSInterop.this.global.type }

  3. abstract val runsAfter: List[String]

    Definition Classes
    SubComponent
  4. abstract val scalaJSOpts: ScalaJSOptions

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. object LowPrioGenBCodeCompat

    Definition Classes
    CompatComponent
  5. object SAMFunctionAttachCompat

    Definition Classes
    CompatComponent
  6. object SAMFunctionAttachCompatDef

    Definition Classes
    CompatComponent
  7. lazy val SAMFunctionCompat: SAMFunction.type

    Definition Classes
    CompatComponent
  8. final def afterOwnPhase[T](op: ⇒ T): T

    Definition Classes
    SubComponent
    Annotations
    @inline()
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. final def beforeOwnPhase[T](op: ⇒ T): T

    Definition Classes
    SubComponent
    Annotations
    @inline()
  11. def checkSetterSignature(sym: scala.tools.nsc.Global.Symbol, pos: scala.tools.nsc.Global.Position, exported: Boolean): Unit

    Checks that a setter has the right signature.

    Checks that a setter has the right signature.

    Reports error messages otherwise.

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def description: String

    Definition Classes
    PrepJSInterop → PluginComponent
  14. def enabled: Boolean

    Definition Classes
    SubComponent
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def genExportMember(baseSym: scala.tools.nsc.Global.Symbol): List[scala.tools.nsc.Global.Tree]

    Generate the exporter for the given DefDef or ValDef (abstract val in class, val in trait or lazy val; these don't get DefDefs until the fields phase)

    Generate the exporter for the given DefDef or ValDef (abstract val in class, val in trait or lazy val; these don't get DefDefs until the fields phase)

    If this DefDef is a constructor, it is registered to be exported by GenJSCode instead and no trees are returned.

    Definition Classes
    PrepJSExports
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    SubComponent → AnyRef → Any
  21. val initial: Boolean

    Definition Classes
    SubComponent
  22. def initializeCoreBTypesCompat(): Unit

    Definition Classes
    CompatComponent
  23. final val internal: Boolean(false)

    Definition Classes
    PluginComponent → SubComponent
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def isJSAny(sym: scala.tools.nsc.Global.Symbol): Boolean

  26. def isPrivateMaybeWithin(sym: scala.tools.nsc.Global.Symbol): Boolean

    Tests whether the symbol has private in any form, either private, private[this] or private[Enclosing].

  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. def newPhase(p: scala.tools.nsc.Phase): StdPhase

    Definition Classes
    PrepJSInterop → Transform → SubComponent
  29. def newTransformer(unit: scala.tools.nsc.Global.CompilationUnit): scala.tools.nsc.Global.Transformer

    Attributes
    protected
    Definition Classes
    PrepJSInterop → Transform
  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  32. def ownPhase: scala.tools.nsc.Phase

    Definition Classes
    SubComponent
  33. val phaseName: String

    Definition Classes
    PrepJSInterop → SubComponent
  34. def phaseNewFlags: Long

    Definition Classes
    SubComponent
  35. def phaseNextFlags: Long

    Definition Classes
    SubComponent
  36. def registerClassOrModuleExports(sym: scala.tools.nsc.Global.Symbol): Unit

    Check and (potentially) register a class or module for export.

    Check and (potentially) register a class or module for export.

    Note that Scala classes are never registered for export, their constructors are.

    Definition Classes
    PrepJSExports
  37. val requires: List[String]

    Definition Classes
    SubComponent
  38. val runsBefore: List[String]

    Definition Classes
    SubComponent
  39. val runsRightAfter: Option[String]

    Definition Classes
    PluginComponent → SubComponent
  40. lazy val scalaUsesImplClasses: Boolean

    Definition Classes
    CompatComponent
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  42. val terminal: Boolean

    Definition Classes
    SubComponent
  43. def toString(): String

    Definition Classes
    AnyRef → Any
  44. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CompatComponent

Inherited from Transform

Inherited from PrepJSExports

Inherited from PluginComponent

Inherited from SubComponent

Inherited from AnyRef

Inherited from Any

Ungrouped