Trait

org.scalajs.core.compiler

JSEncoding

Related Doc: package compiler

Permalink

trait JSEncoding[G <: Global with Singleton] extends SubComponent

Encoding of symbol names for JavaScript

Some issues that this encoding solves: * Overloading: encode the full signature in the JS name * Same scope for fields and methods of a class * Global access to classes and modules (by their full name)

Self Type
GenJSCode[G]
Linear Supertypes
SubComponent, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JSEncoding
  2. SubComponent
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. abstract class StdPhase extends GlobalPhase

    Permalink
    Definition Classes
    SubComponent

Abstract Value Members

  1. abstract val global: Global

    Permalink
    Definition Classes
    SubComponent
  2. abstract def newPhase(prev: Phase): Phase

    Permalink
    Definition Classes
    SubComponent
  3. abstract val phaseName: String

    Permalink
    Definition Classes
    SubComponent
  4. abstract val runsAfter: List[String]

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

    Permalink
    Definition Classes
    SubComponent

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 InnerSep: String("_")

    Permalink

    Inner separator character (replace dots in full names)

  5. final val OuterSep: String("__")

    Permalink

    Outer separator string (between parameter types)

  6. final val ScalaJSEnvironmentName: String("ScalaJS")

    Permalink

    Name given to the local Scala.js environment variable

  7. final def afterOwnPhase[T](op: ⇒ T): T

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final val dceExportName: String("<exported>")

    Permalink

    Name given to all exported stuff of a class for DCE

  12. def enabled: Boolean

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

    Permalink
  14. def encodeClassFullNameIdent(sym: G.Symbol)(implicit pos: G.Position): Ident

    Permalink
  15. def encodeClassType(sym: G.Symbol): Type

    Permalink
  16. def encodeComputedNameIdentity(sym: G.Symbol): String

    Permalink
  17. def encodeFieldSym(sym: G.Symbol)(implicit pos: G.Position): Ident

    Permalink
  18. def encodeLabelSym(sym: G.Symbol)(implicit pos: G.Position): Ident

    Permalink
  19. def encodeLocalSym(sym: G.Symbol)(implicit pos: G.Position): Ident

    Permalink
  20. def encodeMethodName(sym: G.Symbol, reflProxy: Boolean = false): String

    Permalink
  21. def encodeMethodSym(sym: G.Symbol, reflProxy: Boolean = false)(implicit pos: G.Position): Ident

    Permalink
  22. def encodeRTStringMethodSym(sym: G.Symbol)(implicit pos: G.Position): (G.Symbol, Ident)

    Permalink

    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.

  23. def encodeStaticMemberSym(sym: G.Symbol)(implicit pos: G.Position): Ident

    Permalink
  24. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
  28. def freshLocalIdent(base: String)(implicit pos: Position): Ident

    Permalink
  29. def freshLocalIdent()(implicit pos: Position): Ident

    Permalink
  30. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    SubComponent
  33. val internal: Boolean

    Permalink
    Definition Classes
    SubComponent
  34. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  35. final def ne(arg0: AnyRef): Boolean

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

    Permalink
  37. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  39. def ownPhase: Phase

    Permalink
    Definition Classes
    SubComponent
  40. def phaseNewFlags: Long

    Permalink
    Definition Classes
    SubComponent
  41. def phaseNextFlags: Long

    Permalink
    Definition Classes
    SubComponent
  42. val requires: List[String]

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

    Permalink
    Definition Classes
    SubComponent
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  45. val terminal: Boolean

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

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

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

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

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

    Permalink

Inherited from SubComponent

Inherited from AnyRef

Inherited from Any

Ungrouped