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)

Type Members

  1. implicit class BTypesCompat extends AnyRef
    Definition Classes
    CompatComponent
  2. implicit final class GlobalCompat extends AnyRef
    Definition Classes
    CompatComponent
  3. implicit final class SAMFunctionCompatOps extends AnyRef
    Definition Classes
    CompatComponent
  4. implicit final class StdTermNamesCompat extends AnyRef
    Definition Classes
    CompatComponent
  5. implicit final class StdTypeNamesCompat extends AnyRef
    Definition Classes
    CompatComponent
  6. implicit final class SymbolCompat extends AnyRef
    Definition Classes
    CompatComponent
  7. class JSCodePhase extends StdPhase with JSExportsPhase
  8. sealed abstract class MaybeGlobalScope extends AnyRef
  9. type SAMFunctionCompat = G.SAMFunction
    Definition Classes
    CompatComponent
  10. abstract class StdPhase extends GlobalPhase
    Definition Classes
    SubComponent
  11. trait JSExportsPhase extends AnyRef
    Definition Classes
    GenJSExports

Abstract Value Members

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

    testing: this will be called when ASTs are generated

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

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

  3. abstract val runsAfter: List[String]
    Definition Classes
    SubComponent
  4. abstract val scalaJSOpts: ScalaJSOptions

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

Concrete Value Members

  1. object SAMFunctionAttachCompat
    Definition Classes
    CompatComponent
  2. object SAMFunctionAttachCompatDef
    Definition Classes
    CompatComponent
  3. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def ##(): Int
    Definition Classes
    AnyRef → Any
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final val JSSuperClassParamName: LocalName

    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
  7. lazy val SAMFunctionCompat: G.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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  12. val description: String
    Definition Classes
    GenJSCode → PluginComponent
  13. def enabled: Boolean
    Definition Classes
    SubComponent
  14. def encodeClassName(sym: G.Symbol): ClassName
    Definition Classes
    JSEncoding
  15. def encodeClassNameIdent(sym: G.Symbol)(implicit pos: G.Position): ClassIdent
    Definition Classes
    JSEncoding
  16. def encodeClassType(sym: G.Symbol): Type
    Definition Classes
    JSEncoding
  17. def encodeFieldSym(sym: G.Symbol)(implicit pos: G.Position): FieldIdent
    Definition Classes
    JSEncoding
  18. def encodeFieldSymAsStringLiteral(sym: G.Symbol)(implicit pos: G.Position): StringLiteral
    Definition Classes
    JSEncoding
  19. def encodeLabelSym(sym: G.Symbol)(implicit pos: G.Position): LabelIdent
    Definition Classes
    JSEncoding
  20. def encodeLocalSym(sym: G.Symbol)(implicit pos: G.Position): LocalIdent
    Definition Classes
    JSEncoding
  21. def encodeMethodSym(sym: G.Symbol, reflProxy: Boolean = false)(implicit pos: G.Position): MethodIdent
    Definition Classes
    JSEncoding
  22. def encodeStaticFieldGetterSym(sym: G.Symbol)(implicit pos: G.Position): MethodIdent
    Definition Classes
    JSEncoding
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  25. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. def freshLabelIdent(base: String)(implicit pos: Position): LabelIdent
    Definition Classes
    JSEncoding
  27. def freshLocalIdent(base: String)(implicit pos: Position): LocalIdent
    Definition Classes
    JSEncoding
  28. def freshLocalIdent(base: LocalName)(implicit pos: Position): LocalIdent
    Definition Classes
    JSEncoding
  29. def freshLocalIdent()(implicit pos: Position): LocalIdent
    Definition Classes
    JSEncoding
  30. def genIRFile(cunit: G.CompilationUnit, tree: ClassDef): Unit
    Definition Classes
    GenJSFiles
  31. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  32. def getEnclosingReturnLabel()(implicit pos: Position): LabelIdent
    Definition Classes
    JSEncoding
  33. val global: G
    Definition Classes
    GenJSCodeCompatComponent → SubComponent
  34. def hashCode(): Int
    Definition Classes
    SubComponent → AnyRef → Any
  35. implicit def implicitPos2irPos(implicit pos: G.Position): Position

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

  36. val initial: Boolean
    Definition Classes
    SubComponent
  37. final val internal: Boolean(false)
    Definition Classes
    PluginComponent → SubComponent
  38. lazy val isHijackedClass: Set[G.Symbol]
    Attributes
    protected
  39. def isImplClass(sym: G.Symbol): Boolean
    Definition Classes
    CompatComponent
  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. def isJSType(sym: G.Symbol): Boolean

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

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

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

  43. def isNestedJSClass(sym: G.Symbol): Boolean
  44. def isNonNativeJSClass(sym: G.Symbol): Boolean

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

  45. def isStaticModule(sym: G.Symbol): Boolean
  46. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  47. def needsModuleClassSuffix(sym: G.Symbol): Boolean
    Definition Classes
    JSEncoding
  48. def newPhase(p: Phase): StdPhase
    Definition Classes
    GenJSCode → SubComponent
  49. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  50. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  51. def originalNameOfClass(sym: G.Symbol): OriginalName
    Definition Classes
    JSEncoding
  52. def originalNameOfField(sym: G.Symbol): OriginalName
    Definition Classes
    JSEncoding
  53. def originalNameOfLocal(sym: G.Symbol): OriginalName
    Definition Classes
    JSEncoding
  54. def originalNameOfMethod(sym: G.Symbol): OriginalName
    Definition Classes
    JSEncoding
  55. def ownPhase: Phase
    Definition Classes
    SubComponent
  56. val phaseName: String
    Definition Classes
    GenJSCode → SubComponent
  57. def phaseNewFlags: Long
    Definition Classes
    SubComponent
  58. def phaseNextFlags: Long
    Definition Classes
    SubComponent
  59. implicit def pos2irPos(pos: G.Position): Position

    Implicit conversion from nsc Position to ir.Position.

  60. val requires: List[String]
    Definition Classes
    SubComponent
  61. def reserveLocalName(name: LocalName): Unit
    Definition Classes
    JSEncoding
  62. val runsBefore: List[String]
    Definition Classes
    SubComponent
  63. val runsRightAfter: Option[String]
    Definition Classes
    PluginComponent → SubComponent
  64. lazy val scalaUsesImplClasses: Boolean
    Definition Classes
    CompatComponent
  65. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  66. val terminal: Boolean
    Definition Classes
    SubComponent
  67. def toIRType(t: G.Type): Type
    Definition Classes
    TypeConversions
  68. def toString(): String
    Definition Classes
    AnyRef → Any
  69. def toTypeRef(t: G.Type): TypeRef
    Definition Classes
    TypeConversions
  70. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  73. def withNewLocalNameScope[A](body: ⇒ A): A
    Definition Classes
    JSEncoding
  74. def withNewReturnableScope(tpe: Type)(body: ⇒ Tree)(implicit pos: Position): Tree
    Definition Classes
    JSEncoding
  75. object MaybeGlobalScope
  76. object UndefinedParam extends Value with Product with Serializable

    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.

  77. object jsnme

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