trait JSEncoding 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
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
    Definition Classes
    SubComponent

Abstract Value Members

  1. abstract val global: Global
    Definition Classes
    SubComponent
  2. abstract def newPhase(prev: Phase): Phase
    Definition Classes
    SubComponent
  3. abstract val phaseName: String
    Definition Classes
    SubComponent
  4. abstract val runsAfter: List[String]
    Definition Classes
    SubComponent
  5. abstract val runsRightAfter: Option[String]
    Definition Classes
    SubComponent

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

    Inner separator character (replace dots in full names)

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

    Outer separator string (between parameter types)

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

    Name given to the local Scala.js environment variable

  7. final def afterOwnPhase[T](op: ⇒ T): T
    Definition Classes
    SubComponent
    Annotations
    @inline()
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. final def beforeOwnPhase[T](op: ⇒ T): T
    Definition Classes
    SubComponent
    Annotations
    @inline()
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final val dceExportName: String("<exported>")

    Name given to all exported stuff of a class for DCE

  12. def enabled: Boolean
    Definition Classes
    SubComponent
  13. def encodeClassFullName(sym: scala.tools.nsc.Global.Symbol): String
  14. def encodeClassFullNameIdent(sym: scala.tools.nsc.Global.Symbol)(implicit pos: scala.tools.nsc.Global.Position): Ident
  15. def encodeClassType(sym: scala.tools.nsc.Global.Symbol): Type
  16. def encodeFieldSym(sym: scala.tools.nsc.Global.Symbol)(implicit pos: scala.tools.nsc.Global.Position): Ident
  17. def encodeLabelSym(sym: scala.tools.nsc.Global.Symbol)(implicit pos: scala.tools.nsc.Global.Position): Ident
  18. def encodeLocalSym(sym: scala.tools.nsc.Global.Symbol)(implicit pos: scala.tools.nsc.Global.Position): Ident
  19. def encodeMethodName(sym: scala.tools.nsc.Global.Symbol, reflProxy: Boolean = false): String
  20. def encodeMethodSym(sym: scala.tools.nsc.Global.Symbol, reflProxy: Boolean = false)(implicit pos: scala.tools.nsc.Global.Position): Ident
  21. 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.

  22. def encodeStaticMemberSym(sym: scala.tools.nsc.Global.Symbol)(implicit pos: scala.tools.nsc.Global.Position): Ident
  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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. def foreignIsImplClass(sym: scala.tools.nsc.Global.Symbol): Boolean
  27. def freshLocalIdent(base: String)(implicit pos: Position): Ident
  28. def freshLocalIdent()(implicit pos: Position): Ident
  29. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  30. def hashCode(): Int
    Definition Classes
    SubComponent → AnyRef → Any
  31. val initial: Boolean
    Definition Classes
    SubComponent
  32. val internal: Boolean
    Definition Classes
    SubComponent
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. def needsModuleClassSuffix(sym: scala.tools.nsc.Global.Symbol): Boolean
  36. final def notify(): Unit
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  38. def ownPhase: Phase
    Definition Classes
    SubComponent
  39. def phaseNewFlags: Long
    Definition Classes
    SubComponent
  40. def phaseNextFlags: Long
    Definition Classes
    SubComponent
  41. val requires: List[String]
    Definition Classes
    SubComponent
  42. val runsBefore: List[String]
    Definition Classes
    SubComponent
  43. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  44. val terminal: Boolean
    Definition Classes
    SubComponent
  45. def toString(): String
    Definition Classes
    AnyRef → Any
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def withNewLocalNameScope[A](body: ⇒ A): A

Inherited from SubComponent

Inherited from AnyRef

Inherited from Any

Ungrouped