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

Generate JavaScript code and output it to disk

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GenJSCode
  2. PluginComponent210Compat
  3. Compat210Component
  4. GenJSFiles
  5. GenJSExports
  6. JSEncoding
  7. TypeKinds
  8. PluginComponent
  9. SubComponent
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GenJSCode(global: G)

Type Members

  1. implicit final class ErasedValueTypeCompat extends AnyRef
    Definition Classes
    Compat210Component
  2. implicit final class GlobalCompat extends AnyRef
    Definition Classes
    Compat210Component
  3. implicit class OverridingPairsCursor2Iterable extends AnyRef
    Definition Classes
    Compat210Component
  4. implicit final class RunCompat extends AnyRef
    Definition Classes
    Compat210Component
  5. implicit final class SAMFunctionCompatOps extends AnyRef
    Definition Classes
    Compat210Component
  6. implicit final class StdTermNamesCompat extends AnyRef
    Definition Classes
    Compat210Component
  7. implicit final class StdTypeNamesCompat extends AnyRef
    Definition Classes
    Compat210Component
  8. implicit final class SymbolCompat extends AnyRef
    Definition Classes
    Compat210Component
  9. class JSCodePhase extends StdPhase with JSExportsPhase
  10. type SAMFunctionCompat = G.SAMFunction
    Definition Classes
    Compat210Component
  11. abstract class StdPhase extends GlobalPhase
    Definition Classes
    SubComponent
  12. trait JSExportsPhase extends AnyRef
    Definition Classes
    GenJSExports
  13. case class ARRAY extends GenJSCode.TypeKind with Product with Serializable

    An array

    An array

    Definition Classes
    TypeKinds
  14. case class FLOAT extends GenJSCode.ValueTypeKind with Product with Serializable

    Floating-point number (Float or Double).

    Floating-point number (Float or Double).

    Definition Classes
    TypeKinds
  15. case class INT extends GenJSCode.ValueTypeKind with Product with Serializable

    Integer number (Byte, Short, Char or Int).

    Integer number (Byte, Short, Char or Int).

    Definition Classes
    TypeKinds
  16. case class REFERENCE extends GenJSCode.TypeKindButArray with Product with Serializable

    An object

    An object

    Definition Classes
    TypeKinds
  17. sealed abstract class TypeKind extends AnyRef

    Glue representation of types as seen from the IR but still with a reference to the Symbols.

    Glue representation of types as seen from the IR but still with a reference to the Symbols.

    Definition Classes
    TypeKinds
  18. sealed abstract class TypeKindButArray extends GenJSCode.TypeKind
    Definition Classes
    TypeKinds
  19. sealed abstract class ValueTypeKind extends GenJSCode.TypeKindButArray
    Definition Classes
    TypeKinds

Abstract Value Members

  1. abstract def generatedJSAST(clDefs: List[Tree]): 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 DelambdafyCompat
    Definition Classes
    Compat210Component
  2. object LowPrioGenBCodeCompat
    Definition Classes
    Compat210Component
  3. object Mode
    Definition Classes
    Compat210Component
  4. object SAMFunctionAttachCompat
    Definition Classes
    Compat210Component
  5. object SAMFunctionAttachCompatDef
    Definition Classes
    Compat210Component
  6. object ScaladocGlobalCompat
    Definition Classes
    Compat210Component
  7. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def ##(): Int
    Definition Classes
    AnyRef → Any
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. lazy val BooleanKind: BOOL.type
    Definition Classes
    TypeKinds
  11. lazy val ByteKind: INT
    Definition Classes
    TypeKinds
  12. lazy val CharKind: INT
    Definition Classes
    TypeKinds
  13. lazy val DoubleKind: FLOAT
    Definition Classes
    TypeKinds
  14. lazy val FloatKind: FLOAT
    Definition Classes
    TypeKinds
  15. final val InnerSep: String("_")

    Inner separator character (replace dots in full names)

    Inner separator character (replace dots in full names)

    Definition Classes
    JSEncoding
  16. lazy val IntKind: INT
    Definition Classes
    TypeKinds
  17. lazy val LongKind: LONG.type
    Definition Classes
    TypeKinds
  18. lazy val ObjectReference: REFERENCE
    Definition Classes
    TypeKinds
  19. final val OuterSep: String("__")

    Outer separator string (between parameter types)

    Outer separator string (between parameter types)

    Definition Classes
    JSEncoding
  20. lazy val SAMFunctionCompat: G.SAMFunction.type
    Definition Classes
    Compat210Component
  21. final val ScalaJSEnvironmentName: String("ScalaJS")

    Name given to the local Scala.js environment variable

    Name given to the local Scala.js environment variable

    Definition Classes
    JSEncoding
  22. lazy val ShortKind: INT
    Definition Classes
    TypeKinds
  23. lazy val VoidKind: VOID.type
    Definition Classes
    TypeKinds
  24. final def afterOwnPhase[T](op: ⇒ T): T
    Definition Classes
    SubComponent
    Annotations
    @inline()
  25. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  26. final def beforeOwnPhase[T](op: ⇒ T): T
    Definition Classes
    SubComponent
    Annotations
    @inline()
  27. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final val dceExportName: String("<exported>")

    Name given to all exported stuff of a class for DCE

    Name given to all exported stuff of a class for DCE

    Definition Classes
    JSEncoding
  29. val description: String
    Definition Classes
    GenJSCodePluginComponent210Compat → PluginComponent
  30. final def devWarning(msg: ⇒ String): Unit
    Definition Classes
    Compat210Component
    Annotations
    @inline()
  31. def enabled: Boolean
    Definition Classes
    SubComponent
  32. def encodeClassFullName(sym: G.Symbol): String
    Definition Classes
    JSEncoding
  33. def encodeClassFullNameIdent(sym: G.Symbol)(implicit pos: G.Position): Ident
    Definition Classes
    JSEncoding
  34. def encodeClassType(sym: G.Symbol): Type
    Definition Classes
    JSEncoding
  35. def encodeComputedNameIdentity(sym: G.Symbol): String
    Definition Classes
    JSEncoding
  36. def encodeFieldSym(sym: G.Symbol)(implicit pos: G.Position): Ident
    Definition Classes
    JSEncoding
  37. def encodeLabelSym(sym: G.Symbol)(implicit pos: G.Position): Ident
    Definition Classes
    JSEncoding
  38. def encodeLocalSym(sym: G.Symbol)(implicit pos: G.Position): Ident
    Definition Classes
    JSEncoding
  39. def encodeMethodName(sym: G.Symbol, reflProxy: Boolean = false): String
    Definition Classes
    JSEncoding
  40. def encodeMethodSym(sym: G.Symbol, reflProxy: Boolean = false)(implicit pos: G.Position): Ident
    Definition Classes
    JSEncoding
  41. def encodeRTStringMethodSym(sym: G.Symbol)(implicit pos: G.Position): (G.Symbol, Ident)

    Encodes a method symbol of java.lang.String for use in RuntimeString.

    Encodes a method symbol of java.lang.String for use in RuntimeString.

    This basically means adding an initial parameter of type java.lang.String, which is the this parameter.

    Definition Classes
    JSEncoding
  42. def encodeStaticMemberSym(sym: G.Symbol)(implicit pos: G.Position): Ident
    Definition Classes
    JSEncoding
  43. final def enteringPhase[T](ph: Phase)(op: ⇒ T): T
    Definition Classes
    Compat210Component
    Annotations
    @inline()
  44. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  46. final def exitingPhase[T](ph: Phase)(op: ⇒ T): T
    Definition Classes
    Compat210Component
    Annotations
    @inline()
  47. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  48. final def forScaladoc: Boolean
    Definition Classes
    Compat210Component
    Annotations
    @inline()
  49. def foreignIsImplClass(sym: G.Symbol): Boolean
    Definition Classes
    JSEncoding
  50. def freshLocalIdent(base: String)(implicit pos: Position): Ident
    Definition Classes
    JSEncoding
  51. def freshLocalIdent()(implicit pos: Position): Ident
    Definition Classes
    JSEncoding
  52. def genIRFile(cunit: G.CompilationUnit, sym: G.Symbol, suffix: Option[String], tree: ClassDef): Unit
    Definition Classes
    GenJSFiles
  53. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  54. val global: G
    Definition Classes
    GenJSCodeCompat210Component → SubComponent
  55. def hashCode(): Int
    Definition Classes
    SubComponent → AnyRef → Any
  56. implicit def implicitPos2irPos(implicit pos: G.Position): Position

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

  57. val initial: Boolean
    Definition Classes
    SubComponent
  58. def initializeCoreBTypesCompat(): Unit
    Definition Classes
    Compat210Component
  59. final val internal: Boolean(false)
    Definition Classes
    PluginComponent → SubComponent
  60. final def isFunctionSymbol(sym: G.Symbol): Boolean
    Definition Classes
    Compat210Component
  61. lazy val isHijackedBoxedClass: Set[G.Symbol]
    Attributes
    protected
  62. def isImplClass(sym: G.Symbol): Boolean
    Definition Classes
    Compat210Component
  63. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  64. def isRawJSType(tpe: G.Type): Boolean

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

  65. def isScalaJSDefinedAnonJSClass(sym: G.Symbol): Boolean
  66. def isScalaJSDefinedJSClass(sym: G.Symbol): Boolean

    Tests whether the given class is a Scala.js-defined JS class.

  67. def isStaticModule(sym: G.Symbol): Boolean
  68. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  69. def needsModuleClassSuffix(sym: G.Symbol): Boolean
    Definition Classes
    JSEncoding
  70. def newPhase(p: Phase): StdPhase
    Definition Classes
    GenJSCode → SubComponent
  71. final def notify(): Unit
    Definition Classes
    AnyRef
  72. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  73. def ownPhase: Phase
    Definition Classes
    SubComponent
  74. val phaseName: String
    Definition Classes
    GenJSCode → SubComponent
  75. def phaseNewFlags: Long
    Definition Classes
    SubComponent
  76. def phaseNextFlags: Long
    Definition Classes
    SubComponent
  77. implicit def pos2irPos(pos: G.Position): Position

    Implicit conversion from nsc Position to ir.Position.

  78. lazy val primitiveTypeMap: Map[G.Symbol, TypeKind]

    TypeKinds for Scala primitive types.

    TypeKinds for Scala primitive types.

    Definition Classes
    TypeKinds
  79. final def repeatedToSingle(t: G.Type): G.Type
    Definition Classes
    Compat210Component
    Annotations
    @inline()
  80. val requires: List[String]
    Definition Classes
    SubComponent
  81. val runsBefore: List[String]
    Definition Classes
    SubComponent
  82. val runsRightAfter: Option[String]
    Definition Classes
    PluginComponent → SubComponent
  83. lazy val scalaUsesImplClasses: Boolean
    Definition Classes
    Compat210Component
  84. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  85. val terminal: Boolean
    Definition Classes
    SubComponent
  86. def toIRType(t: G.Type): Type
    Definition Classes
    TypeKinds
  87. def toReferenceType(t: G.Type): ReferenceType
    Definition Classes
    TypeKinds
  88. def toString(): String
    Definition Classes
    AnyRef → Any
  89. def toTypeKind(t: G.Type): TypeKind

    Return the TypeKind of the given type

    Return the TypeKind of the given type

    Call to .normalize fixes #3003 (follow type aliases). Otherwise, arrayOrClassType below would return ObjectReference.

    Definition Classes
    TypeKinds
  90. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  91. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  93. def withNewLocalNameScope[A](body: ⇒ A): A
    Definition Classes
    JSEncoding
  94. object BOOL extends GenJSCode.ValueTypeKind with Product with Serializable

    Boolean

    Boolean

    Definition Classes
    TypeKinds
  95. object LONG extends GenJSCode.ValueTypeKind with Product with Serializable

    Long

    Long

    Definition Classes
    TypeKinds
  96. object NOTHING extends GenJSCode.TypeKindButArray with Product with Serializable

    Nothing

    Nothing

    Definition Classes
    TypeKinds
  97. object NULL extends GenJSCode.TypeKindButArray with Product with Serializable

    Null

    Null

    Definition Classes
    TypeKinds
  98. object VOID extends GenJSCode.TypeKindButArray with Product with Serializable

    The void, for trees that can only appear in statement position.

    The void, for trees that can only appear in statement position.

    Definition Classes
    TypeKinds

Inherited from PluginComponent210Compat

Inherited from Compat210Component

Inherited from GenJSFiles[G]

Inherited from GenJSExports[G]

Inherited from JSEncoding[G]

Inherited from TypeKinds[G]

Inherited from PluginComponent

Inherited from SubComponent

Inherited from AnyRef

Inherited from Any

Ungrouped