Class

org.scalajs.nscplugin

GenJSCode

Related Doc: package nscplugin

Permalink

abstract class GenJSCode[G <: Global with Singleton] extends PluginComponent with TypeConversions[G] with JSEncoding[G] with GenJSExports[G] with GenJSFiles[G] with CompatComponent

Generate JavaScript code and output it to disk

Linear Supertypes
CompatComponent, GenJSFiles[G], GenJSExports[G], JSEncoding[G], TypeConversions[G], PluginComponent, SubComponent, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GenJSCode
  2. CompatComponent
  3. GenJSFiles
  4. GenJSExports
  5. JSEncoding
  6. TypeConversions
  7. PluginComponent
  8. SubComponent
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GenJSCode(global: G)

    Permalink

Type Members

  1. implicit final class GlobalCompat extends AnyRef

    Permalink
    Definition Classes
    CompatComponent
  2. class JSCodePhase extends StdPhase with JSExportsPhase

    Permalink
  3. trait JSExportsPhase extends AnyRef

    Permalink
    Definition Classes
    GenJSExports
  4. sealed abstract class MaybeGlobalScope extends AnyRef

    Permalink
  5. type SAMFunctionCompat = SAMFunction

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

    Permalink
    Definition Classes
    CompatComponent
  7. abstract class StdPhase extends GlobalPhase

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

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

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

    Permalink
    Definition Classes
    CompatComponent

Abstract Value Members

  1. abstract def generatedJSAST(clDefs: List[ClassDef]): Unit

    Permalink

    testing: this will be called when ASTs are generated

  2. abstract val jsAddons: JSGlobalAddons { val global: GenJSCode.this.global.type }

    Permalink

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

  3. abstract val runsAfter: List[String]

    Permalink
    Definition Classes
    SubComponent
  4. 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. final val JSSuperClassParamName: String("$superClass")

    Permalink

    Name of the capture param storing the JS super class.

    Name of the capture param storing the JS super class.

    This is used by the dispatchers of exposed JS methods and properties of nested JS classes when they need to perform a super call. Other super calls (in the actual bodies of the methods, not in the dispatchers) do not use this value, since they are implemented as static methods that do not have access to it. Instead, they get the JS super class value through the magic method inserted by ExplicitLocalJS, leveraging lambdalift to ensure that it is properly captured.

    Using this identifier is only allowed if it was reserved in the current local name scope using reserveLocalName. Otherwise, this name can clash with another local identifier.

    Definition Classes
    JSEncoding
  5. object LowPrioGenBCodeCompat

    Permalink
    Definition Classes
    CompatComponent
  6. object MaybeGlobalScope

    Permalink
  7. object SAMFunctionAttachCompat

    Permalink
    Definition Classes
    CompatComponent
  8. object SAMFunctionAttachCompatDef

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

    Permalink
    Definition Classes
    CompatComponent
  10. object UndefinedParam extends Value with Product with Serializable

    Permalink

    Marker object for undefined parameters in JavaScript semantic calls.

    Marker object for undefined parameters in JavaScript semantic calls.

    To be used inside a js.Transient node.

  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 clone(): AnyRef

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

    Permalink
    Definition Classes
    GenJSCode → PluginComponent
  16. def enabled: Boolean

    Permalink
    Definition Classes
    SubComponent
  17. def encodeClassFullName(sym: G.Symbol): String

    Permalink
    Definition Classes
    JSEncoding
  18. def encodeClassFullNameIdent(sym: G.Symbol)(implicit pos: G.Position): Ident

    Permalink
    Definition Classes
    JSEncoding
  19. def encodeClassRef(sym: G.Symbol): ClassRef

    Permalink
    Definition Classes
    JSEncoding
  20. def encodeClassType(sym: G.Symbol): Type

    Permalink
    Definition Classes
    JSEncoding
  21. def encodeComputedNameIdentity(sym: G.Symbol): String

    Permalink
    Definition Classes
    JSEncoding
  22. def encodeFieldSym(sym: G.Symbol)(implicit pos: G.Position): Ident

    Permalink
    Definition Classes
    JSEncoding
  23. def encodeLabelSym(sym: G.Symbol)(implicit pos: G.Position): Ident

    Permalink
    Definition Classes
    JSEncoding
  24. def encodeLocalSym(sym: G.Symbol)(implicit pos: G.Position): Ident

    Permalink
    Definition Classes
    JSEncoding
  25. def encodeMethodSym(sym: G.Symbol, reflProxy: Boolean = false)(implicit pos: G.Position): Ident

    Permalink
    Definition Classes
    JSEncoding
  26. def encodeStaticMemberSym(sym: G.Symbol)(implicit pos: G.Position): Ident

    Permalink
    Definition Classes
    JSEncoding
  27. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. def foreignIsImplClass(sym: G.Symbol): Boolean

    Permalink
    Definition Classes
    JSEncoding
  31. def freshLocalIdent(base: String)(implicit pos: Position): Ident

    Permalink
    Definition Classes
    JSEncoding
  32. def freshLocalIdent()(implicit pos: Position): Ident

    Permalink
    Definition Classes
    JSEncoding
  33. def genIRFile(cunit: G.CompilationUnit, sym: G.Symbol, suffix: Option[String], tree: ClassDef): Unit

    Permalink
    Definition Classes
    GenJSFiles
  34. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  35. def getEnclosingReturnLabel()(implicit pos: Position): Ident

    Permalink
    Definition Classes
    JSEncoding
  36. val global: G

    Permalink
    Definition Classes
    GenJSCodeCompatComponent → SubComponent
  37. def hashCode(): Int

    Permalink
    Definition Classes
    SubComponent → AnyRef → Any
  38. implicit def implicitPos2irPos(implicit pos: G.Position): Position

    Permalink

    Materialize implicitly an ir.Position from an implicit nsc Position.

  39. val initial: Boolean

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

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

    Permalink
    Definition Classes
    PluginComponent → SubComponent
  42. lazy val isHijackedClass: Set[G.Symbol]

    Permalink
    Attributes
    protected
  43. def isImplClass(sym: G.Symbol): Boolean

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

    Permalink
    Definition Classes
    Any
  45. def isJSType(sym: G.Symbol): Boolean

    Permalink

    Tests whether the given type symbol represents a JavaScript type, i.e., whether it extends scala.scalajs.js.Any.

  46. def isJSType(tpe: G.Type): Boolean

    Permalink

    Tests whether the given type represents a JavaScript type, i.e., whether it extends scala.scalajs.js.Any.

  47. def isNestedJSClass(sym: G.Symbol): Boolean

    Permalink
  48. def isNonNativeJSClass(sym: G.Symbol): Boolean

    Permalink

    Tests whether the given class is a non-native JS class.

  49. def isStaticModule(sym: G.Symbol): Boolean

    Permalink
  50. object jsnme

    Permalink
  51. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  52. def needsModuleClassSuffix(sym: G.Symbol): Boolean

    Permalink
    Definition Classes
    JSEncoding
  53. def newPhase(p: Phase): StdPhase

    Permalink
    Definition Classes
    GenJSCode → SubComponent
  54. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  56. def ownPhase: Phase

    Permalink
    Definition Classes
    SubComponent
  57. val phaseName: String

    Permalink
    Definition Classes
    GenJSCode → SubComponent
  58. def phaseNewFlags: Long

    Permalink
    Definition Classes
    SubComponent
  59. def phaseNextFlags: Long

    Permalink
    Definition Classes
    SubComponent
  60. implicit def pos2irPos(pos: G.Position): Position

    Permalink

    Implicit conversion from nsc Position to ir.Position.

  61. val requires: List[String]

    Permalink
    Definition Classes
    SubComponent
  62. def reserveLocalName(name: String): Unit

    Permalink
    Definition Classes
    JSEncoding
  63. val runsBefore: List[String]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  67. val terminal: Boolean

    Permalink
    Definition Classes
    SubComponent
  68. def toIRType(t: G.Type): Type

    Permalink
    Definition Classes
    TypeConversions
  69. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  70. def toTypeRef(t: G.Type): TypeRef

    Permalink
    Definition Classes
    TypeConversions
  71. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  74. def withNewLocalNameScope[A](body: ⇒ A): A

    Permalink
    Definition Classes
    JSEncoding
  75. def withNewReturnableScope(tpe: Type)(body: ⇒ Tree)(implicit pos: Position): Tree

    Permalink
    Definition Classes
    JSEncoding

Inherited from CompatComponent

Inherited from GenJSFiles[G]

Inherited from GenJSExports[G]

Inherited from JSEncoding[G]

Inherited from TypeConversions[G]

Inherited from PluginComponent

Inherited from SubComponent

Inherited from AnyRef

Inherited from Any

Ungrouped