org.scalajs.core.compiler

PrepJSInterop

Related Docs: object PrepJSInterop | package compiler

abstract class PrepJSInterop extends PluginComponent with PrepJSExports with Transform with PluginComponent210Compat

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
PluginComponent210Compat, Compat210Component, Transform, PrepJSExports, PluginComponent, SubComponent, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PrepJSInterop
  2. PluginComponent210Compat
  3. Compat210Component
  4. Transform
  5. PrepJSExports
  6. PluginComponent
  7. SubComponent
  8. AnyRef
  9. 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. implicit final class ErasedValueTypeCompat extends AnyRef

    Definition Classes
    Compat210Component
  2. case class ExportInfo(jsName: String, pos: scala.tools.nsc.Global.Position, isNamed: Boolean, ignoreInvalid: Boolean) extends JSGlobalAddons.jsInterop.ExportInfo with Product with Serializable

    Definition Classes
    PrepJSExports
  3. implicit final class GlobalCompat extends AnyRef

    Definition Classes
    Compat210Component
  4. class JSInteropPhase extends Phase

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

  6. implicit class OverridingPairsCursor2Iterable extends AnyRef

    Definition Classes
    Compat210Component
  7. class Phase extends scala.tools.nsc.transform.Transform.StdPhase

    Definition Classes
    Transform
  8. implicit final class RunCompat extends AnyRef

    Definition Classes
    Compat210Component
  9. type SAMFunctionCompat = SAMFunction

    Definition Classes
    Compat210Component
  10. abstract class StdPhase extends GlobalPhase

    Definition Classes
    SubComponent
  11. implicit final class StdTermNamesCompat extends AnyRef

    Definition Classes
    Compat210Component
  12. implicit final class StdTypeNamesCompat extends AnyRef

    Definition Classes
    Compat210Component
  13. implicit final class SymbolCompat extends AnyRef

    Definition Classes
    Compat210Component

Abstract Value Members

  1. abstract val global: Global

    Definition Classes
    Compat210Component
  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 DelambdafyCompat

    Definition Classes
    Compat210Component
  5. object LowPrioGenBCodeCompat

    Definition Classes
    Compat210Component
  6. object Mode

    Definition Classes
    Compat210Component
  7. object SAMFunctionAttachCompat

    Definition Classes
    Compat210Component
  8. object SAMFunctionAttachCompatDef

    Definition Classes
    Compat210Component
  9. lazy val SAMFunctionCompat: SAMFunction.type

    Definition Classes
    Compat210Component
  10. final def afterOwnPhase[T](op: ⇒ T): T

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

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

    Definition Classes
    SubComponent
    Annotations
    @inline()
  13. 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.

  14. def clone(): AnyRef

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

    Definition Classes
    PrepJSInteropPluginComponent210Compat → PluginComponent
  16. def enabled: Boolean

    Definition Classes
    SubComponent
  17. final def enteringPhase[T](ph: scala.tools.nsc.Phase)(op: ⇒ T): T

    Definition Classes
    Compat210Component
    Annotations
    @inline()
  18. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  20. final def exitingPhase[T](ph: scala.tools.nsc.Phase)(op: ⇒ T): T

    Definition Classes
    Compat210Component
    Annotations
    @inline()
  21. def exportsOf(sym: scala.tools.nsc.Global.Symbol): List[ExportInfo]

    retrieves the names a sym should be exported to from its annotations

    retrieves the names a sym should be exported to from its annotations

    Note that for accessor symbols, the annotations of the accessed symbol are used, rather than the annotations of the accessor itself.

    Definition Classes
    PrepJSExports
  22. def finalize(): Unit

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

    Generate the exporter for the given DefDef

    Generate the exporter for the given DefDef

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

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

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

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

    Definition Classes
    SubComponent
  27. def initializeCoreBTypesCompat(): Unit

    Definition Classes
    Compat210Component
  28. final val internal: Boolean(false)

    Definition Classes
    PluginComponent → SubComponent
  29. final def isFunctionSymbol(sym: scala.tools.nsc.Global.Symbol): Boolean

    Definition Classes
    Compat210Component
  30. final def isInstanceOf[T0]: Boolean

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

  32. 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].

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

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

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

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

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

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

    Definition Classes
    SubComponent
  39. val phaseName: String

    Definition Classes
    PrepJSInterop → SubComponent
  40. def phaseNewFlags: Long

    Definition Classes
    SubComponent
  41. def phaseNextFlags: Long

    Definition Classes
    SubComponent
  42. def registerClassExports(sym: scala.tools.nsc.Global.Symbol): Unit

    Checks and registers class exports on the symbol.

    Checks and registers class exports on the symbol.

    Definition Classes
    PrepJSExports
  43. def registerModuleExports(sym: scala.tools.nsc.Global.Symbol): Unit

    Checks and registers module exports on the symbol

    Checks and registers module exports on the symbol

    Definition Classes
    PrepJSExports
  44. final def repeatedToSingle(t: scala.tools.nsc.Global.Type): scala.tools.nsc.Global.Type

    Definition Classes
    Compat210Component
    Annotations
    @inline()
  45. val requires: List[String]

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

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

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

    Definition Classes
    Compat210Component
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  50. val terminal: Boolean

    Definition Classes
    SubComponent
  51. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from PluginComponent210Compat

Inherited from Compat210Component

Inherited from Transform

Inherited from PrepJSExports

Inherited from PluginComponent

Inherited from SubComponent

Inherited from AnyRef

Inherited from Any

Ungrouped