t

org.scalajs.nscplugin

JSEncoding

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

Encoding of symbol names for the IR.

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
    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 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.

  2. final def afterOwnPhase[T](op: ⇒ T): T
    Definition Classes
    SubComponent
    Annotations
    @inline()
  3. final def beforeOwnPhase[T](op: ⇒ T): T
    Definition Classes
    SubComponent
    Annotations
    @inline()
  4. def enabled: Boolean
    Definition Classes
    SubComponent
  5. def encodeClassName(sym: G.Symbol): ClassName
  6. def encodeClassNameIdent(sym: G.Symbol)(implicit pos: G.Position): ClassIdent
  7. def encodeClassType(sym: G.Symbol): Type
  8. def encodeDynamicImportForwarderIdent(params: List[G.Symbol])(implicit pos: G.Position): MethodIdent
  9. def encodeFieldSym(sym: G.Symbol)(implicit pos: G.Position): FieldIdent
  10. def encodeFieldSymAsStringLiteral(sym: G.Symbol)(implicit pos: G.Position): StringLiteral
  11. def encodeLabelSym(sym: G.Symbol)(implicit pos: G.Position): LabelIdent
  12. def encodeLocalSym(sym: G.Symbol)(implicit pos: G.Position): LocalIdent
  13. def encodeMethodSym(sym: G.Symbol, reflProxy: Boolean = false)(implicit pos: G.Position): MethodIdent
  14. def encodeStaticFieldGetterSym(sym: G.Symbol)(implicit pos: G.Position): MethodIdent
  15. def freshLabelIdent(base: String)(implicit pos: Position): LabelIdent
  16. def freshLocalIdent(base: String)(implicit pos: Position): LocalIdent
  17. def freshLocalIdent(base: LocalName)(implicit pos: Position): LocalIdent
  18. def freshLocalIdent()(implicit pos: Position): LocalIdent
  19. def getEnclosingReturnLabel()(implicit pos: Position): LabelIdent
  20. def hashCode(): Int
    Definition Classes
    SubComponent → AnyRef → Any
  21. val initial: Boolean
    Definition Classes
    SubComponent
  22. val internal: Boolean
    Definition Classes
    SubComponent
  23. def needsModuleClassSuffix(sym: G.Symbol): Boolean
  24. def originalNameOfClass(sym: G.Symbol): OriginalName
  25. def originalNameOfField(sym: G.Symbol): OriginalName
  26. def originalNameOfLocal(sym: G.Symbol): OriginalName
  27. def originalNameOfMethod(sym: G.Symbol): OriginalName
  28. def ownPhase: Phase
    Definition Classes
    SubComponent
  29. def phaseNewFlags: Long
    Definition Classes
    SubComponent
  30. def phaseNextFlags: Long
    Definition Classes
    SubComponent
  31. val requires: List[String]
    Definition Classes
    SubComponent
  32. def reserveLocalName(name: LocalName): Unit
  33. val runsBefore: List[String]
    Definition Classes
    SubComponent
  34. val terminal: Boolean
    Definition Classes
    SubComponent
  35. def withNewLocalNameScope[A](body: ⇒ A): A
  36. def withNewReturnableScope(tpe: Type)(body: ⇒ Tree)(implicit pos: Position): Tree