Class/Object

org.scalajs.nscplugin

PrepJSInterop

Related Docs: object PrepJSInterop | package nscplugin

Permalink

abstract class PrepJSInterop[G <: Global with Singleton] extends PluginComponent with PrepJSExports[G] 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[G], 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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PrepJSInterop(global: G)

    Permalink

Type Members

  1. implicit class BTypesCompat extends AnyRef

    Permalink
    Definition Classes
    CompatComponent
  2. implicit final class GlobalCompat extends AnyRef

    Permalink
    Definition Classes
    CompatComponent
  3. class JSInteropPhase extends Phase

    Permalink
  4. class JSInteropTransformer extends G.Transformer

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

    Permalink
    Definition Classes
    Transform
  6. type SAMFunctionCompat = SAMFunction

    Permalink
    Definition Classes
    CompatComponent
  7. implicit final class SAMFunctionCompatOps extends AnyRef

    Permalink
    Definition Classes
    CompatComponent
  8. abstract class StdPhase extends GlobalPhase

    Permalink
    Definition Classes
    SubComponent
  9. implicit final class StdTermNamesCompat extends AnyRef

    Permalink
    Definition Classes
    CompatComponent
  10. implicit final class StdTypeNamesCompat extends AnyRef

    Permalink
    Definition Classes
    CompatComponent
  11. implicit final class SymbolCompat extends AnyRef

    Permalink
    Definition Classes
    CompatComponent
  12. implicit final class TyperCompat extends AnyRef

    Permalink
    Definition Classes
    CompatComponent

Abstract Value Members

  1. abstract val jsAddons: JSGlobalAddons { val global: PrepJSInterop.this.global.type }

    Permalink

    Not for use in the constructor body: only initialized afterwards.

  2. abstract val runsAfter: List[String]

    Permalink
    Definition Classes
    SubComponent
  3. abstract val scalaJSOpts: ScalaJSOptions

    Permalink

    Not for use in the constructor body: only initialized afterwards.

Concrete Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. object SAMFunctionAttachCompat

    Permalink
    Definition Classes
    CompatComponent
  5. object SAMFunctionAttachCompatDef

    Permalink
    Definition Classes
    CompatComponent
  6. lazy val SAMFunctionCompat: SAMFunction.type

    Permalink
    Definition Classes
    CompatComponent
  7. val WarningCategory: CompatComponent.WarningCategoryCompat.Reporting.WarningCategory.type

    Permalink
    Definition Classes
    CompatComponent
  8. object WarningCategoryCompat

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

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

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

    Permalink
    Definition Classes
    SubComponent
    Annotations
    @inline()
  12. def checkSetterSignature(sym: G.Symbol, pos: G.Position, exported: Boolean): Unit

    Permalink

    Checks that a setter has the right signature.

    Checks that a setter has the right signature.

    Reports error messages otherwise.

  13. def clone(): AnyRef

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

    Permalink
    Definition Classes
    PrepJSInterop → PluginComponent
  15. def enabled: Boolean

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def genExportMember(baseSym: G.Symbol): List[G.Tree]

    Permalink

    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
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. val global: G

    Permalink
    Definition Classes
    PrepJSInteropCompatComponent → SubComponent
  22. def hashCode(): Int

    Permalink
    Definition Classes
    SubComponent → AnyRef → Any
  23. val initial: Boolean

    Permalink
    Definition Classes
    SubComponent
  24. final val internal: Boolean(false)

    Permalink
    Definition Classes
    PluginComponent → SubComponent
  25. def isImplClass(sym: G.Symbol): Boolean

    Permalink
    Definition Classes
    CompatComponent
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. def isJSAny(sym: G.Symbol): Boolean

    Permalink
  28. def isPrivateMaybeWithin(sym: G.Symbol): Boolean

    Permalink

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

  29. lazy val isScala211: Boolean

    Permalink
    Definition Classes
    CompatComponent
  30. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    PrepJSInterop → Transform → SubComponent
  32. def newTransformer(unit: G.CompilationUnit): G.Transformer

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

    Permalink
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. def ownPhase: scala.tools.nsc.Phase

    Permalink
    Definition Classes
    SubComponent
  36. val phaseName: String

    Permalink
    Definition Classes
    PrepJSInterop → SubComponent
  37. def phaseNewFlags: Long

    Permalink
    Definition Classes
    SubComponent
  38. def phaseNextFlags: Long

    Permalink
    Definition Classes
    SubComponent
  39. def registerClassOrModuleExports(sym: G.Symbol): Unit

    Permalink

    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
  40. val requires: List[String]

    Permalink
    Definition Classes
    SubComponent
  41. val runsBefore: List[String]

    Permalink
    Definition Classes
    SubComponent
  42. val runsRightAfter: Option[String]

    Permalink
    Definition Classes
    PluginComponent → SubComponent
  43. lazy val scalaUsesImplClasses: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  45. val terminal: Boolean

    Permalink
    Definition Classes
    SubComponent
  46. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CompatComponent

Inherited from Transform

Inherited from PrepJSExports[G]

Inherited from PluginComponent

Inherited from SubComponent

Inherited from AnyRef

Inherited from Any

Ungrouped