org.scalajs.core.compiler

GenJSCode

Related Doc: package compiler

abstract class GenJSCode extends PluginComponent with TypeKinds with JSEncoding with GenJSExports with GenJSFiles with Compat210Component

Generate JavaScript code and output it to disk

Linear Supertypes
Compat210Component, GenJSFiles, GenJSExports, JSEncoding, TypeKinds, PluginComponent, SubComponent, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GenJSCode
  2. Compat210Component
  3. GenJSFiles
  4. GenJSExports
  5. JSEncoding
  6. TypeKinds
  7. PluginComponent
  8. SubComponent
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GenJSCode()

Type Members

  1. case class ARRAY extends GenJSCode.TypeKind with Product with Serializable

    An array

    An array

    Definition Classes
    TypeKinds
  2. implicit final class ErasedValueTypeCompat extends AnyRef

    Definition Classes
    Compat210Component
  3. 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
  4. 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
  5. class JSCodePhase extends StdPhase with JSExportsPhase

  6. trait JSExportsPhase extends AnyRef

    Definition Classes
    GenJSExports
  7. case class REFERENCE extends GenJSCode.TypeKindButArray with Product with Serializable

    An object

    An object

    Definition Classes
    TypeKinds
  8. implicit final class RunCompat extends AnyRef

    Definition Classes
    Compat210Component
  9. abstract class StdPhase extends GlobalPhase

    Definition Classes
    SubComponent
  10. implicit final class SymbolCompat extends AnyRef

    Definition Classes
    Compat210Component
  11. 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
  12. sealed abstract class TypeKindButArray extends GenJSCode.TypeKind

    Definition Classes
    TypeKinds
  13. 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 global: Global

    Definition Classes
    Compat210Component
  3. abstract val jsAddons: JSGlobalAddons { val global: GenJSCode.this.global.type }

  4. abstract val runsAfter: List[String]

    Definition Classes
    SubComponent
  5. 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 BOOL extends GenJSCode.ValueTypeKind with Product with Serializable

    Boolean

    Boolean

    Definition Classes
    TypeKinds
  5. lazy val BooleanKind: BOOL.type

    Definition Classes
    TypeKinds
  6. lazy val ByteKind: INT

    Definition Classes
    TypeKinds
  7. lazy val CharKind: INT

    Definition Classes
    TypeKinds
  8. lazy val DoubleKind: FLOAT

    Definition Classes
    TypeKinds
  9. lazy val FloatKind: FLOAT

    Definition Classes
    TypeKinds
  10. final val InnerSep: String("_")

    Inner separator character (replace dots in full names)

    Inner separator character (replace dots in full names)

    Definition Classes
    JSEncoding
  11. lazy val IntKind: INT

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

    Long

    Long

    Definition Classes
    TypeKinds
  13. lazy val LongKind: LONG.type

    Definition Classes
    TypeKinds
  14. object Mode

    Definition Classes
    Compat210Component
  15. object NOTHING extends GenJSCode.TypeKindButArray with Product with Serializable

    Nothing

    Nothing

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

    Null

    Null

    Definition Classes
    TypeKinds
  17. lazy val ObjectReference: REFERENCE

    Definition Classes
    TypeKinds
  18. final val OuterSep: String("__")

    Outer separator string (between parameter types)

    Outer separator string (between parameter types)

    Definition Classes
    JSEncoding
  19. 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
  20. lazy val ShortKind: INT

    Definition Classes
    TypeKinds
  21. 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
  22. lazy val VoidKind: VOID.type

    Definition Classes
    TypeKinds
  23. final def afterOwnPhase[T](op: ⇒ T): T

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

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

    Definition Classes
    SubComponent
    Annotations
    @inline()
  26. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. 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
  28. def description: String

    Definition Classes
    PluginComponent
  29. def enabled: Boolean

    Definition Classes
    SubComponent
  30. def encodeClassFullName(sym: scala.tools.nsc.Global.Symbol): String

    Definition Classes
    JSEncoding
  31. def encodeClassFullNameIdent(sym: scala.tools.nsc.Global.Symbol)(implicit pos: scala.tools.nsc.Global.Position): Ident

    Definition Classes
    JSEncoding
  32. def encodeClassType(sym: scala.tools.nsc.Global.Symbol): Type

    Definition Classes
    JSEncoding
  33. def encodeFieldSym(sym: scala.tools.nsc.Global.Symbol)(implicit pos: scala.tools.nsc.Global.Position): Ident

    Definition Classes
    JSEncoding
  34. def encodeLabelSym(sym: scala.tools.nsc.Global.Symbol)(implicit pos: scala.tools.nsc.Global.Position): Ident

    Definition Classes
    JSEncoding
  35. def encodeLocalSym(sym: scala.tools.nsc.Global.Symbol)(implicit pos: scala.tools.nsc.Global.Position): Ident

    Definition Classes
    JSEncoding
  36. def encodeMethodName(sym: scala.tools.nsc.Global.Symbol, reflProxy: Boolean = false): String

    Definition Classes
    JSEncoding
  37. def encodeMethodSym(sym: scala.tools.nsc.Global.Symbol, reflProxy: Boolean = false)(implicit pos: scala.tools.nsc.Global.Position): Ident

    Definition Classes
    JSEncoding
  38. def encodeRTStringMethodSym(sym: scala.tools.nsc.Global.Symbol)(implicit pos: scala.tools.nsc.Global.Position): (scala.tools.nsc.Global.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
  39. def encodeStaticMemberSym(sym: scala.tools.nsc.Global.Symbol)(implicit pos: scala.tools.nsc.Global.Position): Ident

    Definition Classes
    JSEncoding
  40. final def enteringPhase[T](ph: Phase)(op: ⇒ T): T

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

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

    Definition Classes
    AnyRef → Any
  43. final def exitingPhase[T](ph: Phase)(op: ⇒ T): T

    Definition Classes
    Compat210Component
    Annotations
    @inline()
  44. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  45. def foreignIsImplClass(sym: scala.tools.nsc.Global.Symbol): Boolean

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

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

    Definition Classes
    JSEncoding
  48. def genIRFile(cunit: scala.tools.nsc.Global.CompilationUnit, sym: scala.tools.nsc.Global.Symbol, tree: ClassDef, classInfo: ClassInfo): Unit

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

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

    Definition Classes
    SubComponent → AnyRef → Any
  51. implicit def implicitPos2irPos(implicit pos: scala.tools.nsc.Global.Position): Position

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

  52. val initial: Boolean

    Definition Classes
    SubComponent
  53. final val internal: Boolean(false)

    Definition Classes
    PluginComponent → SubComponent
  54. lazy val isHijackedBoxedClass: Set[scala.tools.nsc.Global.Symbol]

    Attributes
    protected
  55. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  56. def isRawJSType(tpe: scala.tools.nsc.Global.Type): Boolean

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

  57. def isStaticModule(sym: scala.tools.nsc.Global.Symbol): Boolean

  58. def jsNameOf(sym: scala.tools.nsc.Global.Symbol): String

    Get JS name of Symbol if it was specified with JSName annotation, or infers a default from the Scala name.

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

    Definition Classes
    AnyRef
  60. def needsModuleClassSuffix(sym: scala.tools.nsc.Global.Symbol): Boolean

    Definition Classes
    JSEncoding
  61. def newPhase(p: Phase): JSCodePhase

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

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

    Definition Classes
    AnyRef
  64. def ownPhase: Phase

    Definition Classes
    SubComponent
  65. val phaseName: String

    Definition Classes
    GenJSCode → SubComponent
  66. def phaseNewFlags: Long

    Definition Classes
    SubComponent
  67. def phaseNextFlags: Long

    Definition Classes
    SubComponent
  68. implicit def pos2irPos(pos: scala.tools.nsc.Global.Position): Position

    Implicit conversion from nsc Position to ir.Position.

  69. lazy val primitiveTypeMap: Map[scala.tools.nsc.Global.Symbol, TypeKind]

    TypeKinds for Scala primitive types.

    TypeKinds for Scala primitive types.

    Definition Classes
    TypeKinds
  70. final def repeatedToSingle(t: scala.tools.nsc.Global.Type): scala.tools.nsc.Global.Type

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

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

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

    Definition Classes
    PluginComponent → SubComponent
  74. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  75. val terminal: Boolean

    Definition Classes
    SubComponent
  76. def toIRType(t: scala.tools.nsc.Global.Type): Type

    Definition Classes
    TypeKinds
  77. def toReferenceType(t: scala.tools.nsc.Global.Type): ReferenceType

    Definition Classes
    TypeKinds
  78. def toString(): String

    Definition Classes
    AnyRef → Any
  79. def toTypeKind(t: scala.tools.nsc.Global.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
  80. final def wait(): Unit

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

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

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

    Definition Classes
    JSEncoding

Inherited from Compat210Component

Inherited from GenJSFiles

Inherited from GenJSExports

Inherited from JSEncoding

Inherited from TypeKinds

Inherited from PluginComponent

Inherited from SubComponent

Inherited from AnyRef

Inherited from Any

Ungrouped