Class/Object

org.scalajs.core.compiler

PrepJSInterop

Related Docs: object PrepJSInterop | package compiler

Permalink

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

Instance Constructors

  1. new PrepJSInterop(global: G)

    Permalink

Type Members

  1. implicit final class ErasedValueTypeCompat extends AnyRef

    Permalink
    Definition Classes
    Compat210Component
  2. case class ExportInfo(jsName: String, pos: G.Position, isNamed: Boolean, destination: (jsAddons)#ExportDestination, ignoreInvalid: Boolean) extends JSGlobalAddons.jsInterop.ExportInfo with Product with Serializable

    Permalink
    Definition Classes
    PrepJSExports
  3. implicit final class GlobalCompat extends AnyRef

    Permalink
    Definition Classes
    Compat210Component
  4. class JSInteropPhase extends Phase

    Permalink
  5. class JSInteropTransformer extends G.Transformer

    Permalink
  6. implicit class OverridingPairsCursor2Iterable extends AnyRef

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

    Permalink
    Definition Classes
    Transform
  8. implicit final class RunCompat extends AnyRef

    Permalink
    Definition Classes
    Compat210Component
  9. type SAMFunctionCompat = SAMFunction

    Permalink
    Definition Classes
    Compat210Component
  10. implicit final class SAMFunctionCompatOps extends AnyRef

    Permalink
    Definition Classes
    Compat210Component
  11. abstract class StdPhase extends GlobalPhase

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

    Permalink
    Definition Classes
    Compat210Component
  13. implicit final class StdTypeNamesCompat extends AnyRef

    Permalink
    Definition Classes
    Compat210Component
  14. implicit final class SymbolCompat extends AnyRef

    Permalink
    Definition Classes
    Compat210Component

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 DelambdafyCompat

    Permalink
    Definition Classes
    Compat210Component
  5. object LowPrioGenBCodeCompat

    Permalink
    Definition Classes
    Compat210Component
  6. object Mode

    Permalink
    Definition Classes
    Compat210Component
  7. object SAMFunctionAttachCompat

    Permalink
    Definition Classes
    Compat210Component
  8. object SAMFunctionAttachCompatDef

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

    Permalink
    Definition Classes
    Compat210Component
  10. object ScaladocGlobalCompat

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

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

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

    Permalink
    Definition Classes
    SubComponent
    Annotations
    @inline()
  14. def checkDeprecationOfJSExportDescendentClassesObjects(sym: G.Symbol): Unit

    Permalink

    Deprecate @JSExportDescendentClasses and @JSExportDescendentObjects.

    Deprecate @JSExportDescendentClasses and @JSExportDescendentObjects.

    We do this only on the annotated symbol (not in descendants), which is why this test is a bit separate from everything else. Ideally we would simply @deprecate the annotations, but that would not allow us to suppress the deprecations.

    Definition Classes
    PrepJSExports
  15. 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.

  16. def clone(): AnyRef

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

    Permalink
    Definition Classes
    PrepJSInteropPluginComponent210Compat → PluginComponent
  18. final def devWarning(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Compat210Component
    Annotations
    @inline()
  19. def enabled: Boolean

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

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

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

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

    Permalink
    Definition Classes
    Compat210Component
    Annotations
    @inline()
  24. def exportsOf(sym: G.Symbol): List[ExportInfo]

    Permalink

    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
  25. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. final def forScaladoc: Boolean

    Permalink
    Definition Classes
    Compat210Component
    Annotations
    @inline()
  27. 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
  28. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    PrepJSInteropCompat210Component → SubComponent
  30. def hashCode(): Int

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

    Permalink
    Definition Classes
    SubComponent
  32. def initializeCoreBTypesCompat(): Unit

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

    Permalink
    Definition Classes
    PluginComponent → SubComponent
  34. final def isFunctionSymbol(sym: G.Symbol): Boolean

    Permalink
    Definition Classes
    Compat210Component
  35. def isImplClass(sym: G.Symbol): Boolean

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

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

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

    Permalink

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

  39. def isScalaJSDefinedAcrossRuns(sym: G.Symbol): Boolean

    Permalink
    Attributes
    protected
  40. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    SubComponent
  46. val phaseName: String

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

    Permalink
    Definition Classes
    SubComponent
  48. def phaseNextFlags: Long

    Permalink
    Definition Classes
    SubComponent
  49. def registerClassExports(sym: G.Symbol): Unit

    Permalink

    Checks and registers class exports on the symbol.

    Checks and registers class exports on the symbol.

    Definition Classes
    PrepJSExports
  50. def registerModuleExports(sym: G.Symbol): Unit

    Permalink

    Checks and registers module exports on the symbol

    Checks and registers module exports on the symbol

    Definition Classes
    PrepJSExports
  51. final def repeatedToSingle(t: G.Type): G.Type

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  57. val terminal: Boolean

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

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

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

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

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

Inherited from PluginComponent210Compat

Inherited from Compat210Component

Inherited from Transform

Inherited from PrepJSExports[G]

Inherited from PluginComponent

Inherited from SubComponent

Inherited from AnyRef

Inherited from Any

Ungrouped