org.scalajs.core.ir

Trees

object Trees

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Trees
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class Apply(receiver: Tree, method: Ident, args: List[Tree])(tpe: Type)(implicit pos: Position) extends Tree with Product with Serializable

    Apply an instance method with dynamic dispatch (the default).

  2. case class ApplyStatic(cls: ClassType, method: Ident, args: List[Tree])(tpe: Type)(implicit pos: Position) extends Tree with Product with Serializable

    Apply a static method.

  3. case class ApplyStatically(receiver: Tree, cls: ClassType, method: Ident, args: List[Tree])(tpe: Type)(implicit pos: Position) extends Tree with Product with Serializable

    Apply an instance method with static dispatch (e.

  4. case class ArrayLength(array: Tree)(implicit pos: Position) extends Tree with Product with Serializable

  5. case class ArraySelect(array: Tree, index: Tree)(tpe: Type)(implicit pos: Position) extends Tree with Product with Serializable

  6. case class ArrayValue(tpe: ArrayType, elems: List[Tree])(implicit pos: Position) extends Tree with Product with Serializable

  7. case class AsInstanceOf(expr: Tree, cls: ReferenceType)(implicit pos: Position) extends Tree with Product with Serializable

  8. case class Assign(lhs: Tree, rhs: Tree)(implicit pos: Position) extends Tree with Product with Serializable

  9. case class BinaryOp(op: Code, lhs: Tree, rhs: Tree)(implicit pos: Position) extends Tree with Product with Serializable

    Binary operation (always preserves pureness).

  10. class Block extends Tree

  11. case class BooleanLiteral(value: Boolean)(implicit pos: Position) extends Tree with Literal with Product with Serializable

  12. case class CallHelper(helper: String, args: List[Tree])(tpe: Type)(implicit pos: Position) extends Tree with Product with Serializable

  13. case class ClassDef(name: Ident, kind: ClassKind, superClass: Option[Ident], interfaces: List[Ident], jsNativeLoadSpec: Option[JSNativeLoadSpec], defs: List[Tree])(optimizerHints: OptimizerHints)(implicit pos: Position) extends Tree with Product with Serializable

  14. case class ClassOf(cls: ReferenceType)(implicit pos: Position) extends Tree with Literal with Product with Serializable

  15. case class Closure(captureParams: List[ParamDef], params: List[ParamDef], body: Tree, captureValues: List[Tree])(implicit pos: Position) extends Tree with Product with Serializable

    Closure with explicit captures.

  16. case class ComputedName(tree: Tree, logicalName: String) extends PropertyName with Product with Serializable

  17. case class ConstructorExportDef(name: String, args: List[ParamDef], body: Tree)(implicit pos: Position) extends Tree with Product with Serializable

  18. case class Continue(label: Option[Ident] = scala.None)(implicit pos: Position) extends Tree with Product with Serializable

  19. case class Debugger()(implicit pos: Position) extends Tree with Product with Serializable

  20. case class DoWhile(body: Tree, cond: Tree, label: Option[Ident] = scala.None)(implicit pos: Position) extends Tree with Product with Serializable

  21. case class DoubleLiteral(value: Double)(implicit pos: Position) extends Tree with Literal with Product with Serializable

  22. case class FieldDef(static: Boolean, name: PropertyName, ftpe: Type, mutable: Boolean)(implicit pos: Position) extends Tree with Product with Serializable

  23. case class FloatLiteral(value: Float)(implicit pos: Position) extends Tree with Literal with Product with Serializable

  24. case class GetClass(expr: Tree)(implicit pos: Position) extends Tree with Product with Serializable

  25. case class Ident(name: String, originalName: Option[String])(implicit pos: Position) extends PropertyName with Product with Serializable

  26. case class If(cond: Tree, thenp: Tree, elsep: Tree)(tpe: Type)(implicit pos: Position) extends Tree with Product with Serializable

  27. case class IntLiteral(value: Int)(implicit pos: Position) extends Tree with Literal with Product with Serializable

  28. case class IsInstanceOf(expr: Tree, cls: ReferenceType)(implicit pos: Position) extends Tree with Product with Serializable

  29. case class JSArrayConstr(items: List[Tree])(implicit pos: Position) extends Tree with Product with Serializable

  30. case class JSBinaryOp(op: Code, lhs: Tree, rhs: Tree)(implicit pos: Position) extends Tree with Product with Serializable

    Binary operation (always preserves pureness).

  31. case class JSBracketMethodApply(receiver: Tree, method: Tree, args: List[Tree])(implicit pos: Position) extends Tree with Product with Serializable

  32. case class JSBracketSelect(qualifier: Tree, item: Tree)(implicit pos: Position) extends Tree with Product with Serializable

  33. case class JSClassExportDef(fullName: String)(implicit pos: Position) extends Tree with Product with Serializable

  34. case class JSDelete(prop: Tree)(implicit pos: Position) extends Tree with Product with Serializable

  35. case class JSDotMethodApply(receiver: Tree, method: Ident, args: List[Tree])(implicit pos: Position) extends Tree with Product with Serializable

  36. case class JSDotSelect(qualifier: Tree, item: Ident)(implicit pos: Position) extends Tree with Product with Serializable

  37. case class JSFunctionApply(fun: Tree, args: List[Tree])(implicit pos: Position) extends Tree with Product with Serializable

  38. case class JSImportCall(arg: Tree)(implicit pos: Position) extends Tree with Product with Serializable

    JavaScript dynamic import of the form import(arg).

  39. case class JSLinkingInfo()(implicit pos: Position) extends Tree with Product with Serializable

  40. sealed abstract class JSNativeLoadSpec extends AnyRef

    Loading specification for a native JS class or object.

  41. case class JSNew(ctor: Tree, args: List[Tree])(implicit pos: Position) extends Tree with Product with Serializable

  42. case class JSObjectConstr(fields: List[(PropertyName, Tree)])(implicit pos: Position) extends Tree with Product with Serializable

  43. case class JSSpread(items: Tree)(implicit pos: Position) extends Tree with Product with Serializable

    ...items, the "spread" operator of ECMAScript 6.

  44. case class JSSuperBracketCall(cls: ClassType, receiver: Tree, method: Tree, args: List[Tree])(implicit pos: Position) extends Tree with Product with Serializable

    Calls a method inherited from the parent class of cls on receiver.

  45. case class JSSuperBracketSelect(cls: ClassType, receiver: Tree, item: Tree)(implicit pos: Position) extends Tree with Product with Serializable

    Selects a property inherited from the parent class of cls on receiver.

  46. case class JSSuperConstructorCall(args: List[Tree])(implicit pos: Position) extends Tree with Product with Serializable

    Super constructor call in the constructor of a Scala.

  47. case class JSUnaryOp(op: Code, lhs: Tree)(implicit pos: Position) extends Tree with Product with Serializable

    Unary operation (always preserves pureness).

  48. case class Labeled(label: Ident, tpe: Type, body: Tree)(implicit pos: Position) extends Tree with Product with Serializable

  49. sealed trait Literal extends Tree

    Marker for literals.

  50. case class LoadJSConstructor(cls: ClassType)(implicit pos: Position) extends Tree with Product with Serializable

    Loads the constructor of a JS class (native or not).

  51. case class LoadJSModule(cls: ClassType)(implicit pos: Position) extends Tree with Product with Serializable

    Like LoadModule but for a JS module class.

  52. case class LoadModule(cls: ClassType)(implicit pos: Position) extends Tree with Product with Serializable

  53. case class LongLiteral(value: Long)(implicit pos: Position) extends Tree with Literal with Product with Serializable

  54. case class Match(selector: Tree, cases: List[(List[Literal], Tree)], default: Tree)(tpe: Type)(implicit pos: Position) extends Tree with Product with Serializable

    A break-free switch (without fallthrough behavior).

  55. case class MethodDef(static: Boolean, name: PropertyName, args: List[ParamDef], resultType: Type, body: Option[Tree])(optimizerHints: OptimizerHints, hash: Option[TreeHash])(implicit pos: Position) extends Tree with Product with Serializable

  56. case class ModuleExportDef(fullName: String)(implicit pos: Position) extends Tree with Product with Serializable

    Traditional @JSExport for top-level objects, as a 0-arg function.

  57. case class New(cls: ClassType, ctor: Ident, args: List[Tree])(implicit pos: Position) extends Tree with Product with Serializable

  58. case class NewArray(tpe: ArrayType, lengths: List[Tree])(implicit pos: Position) extends Tree with Product with Serializable

  59. case class Null()(implicit pos: Position) extends Tree with Literal with Product with Serializable

  60. final class OptimizerHints extends AnyVal

  61. case class ParamDef(name: Ident, ptpe: Type, mutable: Boolean, rest: Boolean)(implicit pos: Position) extends Tree with Product with Serializable

  62. case class PropertyDef(static: Boolean, name: PropertyName, getterBody: Option[Tree], setterArgAndBody: Option[(ParamDef, Tree)])(implicit pos: Position) extends Tree with Product with Serializable

  63. sealed trait PropertyName extends AnyRef

  64. case class RecordValue(tpe: RecordType, elems: List[Tree])(implicit pos: Position) extends Tree with Product with Serializable

  65. case class Return(expr: Tree, label: Option[Ident] = scala.None)(implicit pos: Position) extends Tree with Product with Serializable

  66. case class Select(qualifier: Tree, item: Ident)(tpe: Type)(implicit pos: Position) extends Tree with Product with Serializable

  67. case class SelectStatic(cls: ClassType, item: Ident)(tpe: Type)(implicit pos: Position) extends Tree with Product with Serializable

  68. case class Skip()(implicit pos: Position) extends Tree with Product with Serializable

  69. case class StoreModule(cls: ClassType, value: Tree)(implicit pos: Position) extends Tree with Product with Serializable

  70. case class StringLiteral(value: String)(implicit pos: Position) extends Tree with Literal with PropertyName with Product with Serializable

  71. case class This()(tpe: Type)(implicit pos: Position) extends Tree with Product with Serializable

  72. case class Throw(expr: Tree)(implicit pos: Position) extends Tree with Product with Serializable

  73. case class TopLevelFieldExportDef(fullName: String, field: Ident)(implicit pos: Position) extends Tree with Product with Serializable

  74. case class TopLevelMethodExportDef(methodDef: MethodDef)(implicit pos: Position) extends Tree with Product with Serializable

  75. case class TopLevelModuleExportDef(fullName: String)(implicit pos: Position) extends Tree with Product with Serializable

    New-style @JSExportTopLevel for top-level objects, directly as the object.

  76. sealed abstract class Tree extends AnyRef

    AST node of the IR.

  77. final class TreeHash extends AnyRef

    A hash of a tree (usually a MethodDef).

  78. case class TryCatch(block: Tree, errVar: Ident, handler: Tree)(tpe: Type)(implicit pos: Position) extends Tree with Product with Serializable

  79. case class TryFinally(block: Tree, finalizer: Tree)(implicit pos: Position) extends Tree with Product with Serializable

  80. case class UnaryOp(op: Code, lhs: Tree)(implicit pos: Position) extends Tree with Product with Serializable

    Unary operation (always preserves pureness).

  81. case class Unbox(expr: Tree, charCode: Char)(implicit pos: Position) extends Tree with Product with Serializable

  82. case class Undefined()(implicit pos: Position) extends Tree with Literal with Product with Serializable

  83. case class UndefinedParam()(tpe: Type)(implicit pos: Position) extends Tree with Product with Serializable

  84. case class VarDef(name: Ident, vtpe: Type, mutable: Boolean, rhs: Tree)(implicit pos: Position) extends Tree with Product with Serializable

  85. case class VarRef(ident: Ident)(tpe: Type)(implicit pos: Position) extends Tree with Product with Serializable

  86. case class While(cond: Tree, body: Tree, label: Option[Ident] = scala.None)(implicit pos: Position) extends Tree with Product with Serializable

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object BinaryOp extends Serializable

  7. object Block

  8. object CallHelper extends Serializable

  9. object Ident extends Serializable

  10. object JSBinaryOp extends Serializable

  11. object JSNativeLoadSpec

  12. object JSUnaryOp extends Serializable

  13. object OptimizerHints

  14. object UnaryOp extends Serializable

  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. final val isKeyword: Set[String]

  24. final def isValidIdentifier(name: String): Boolean

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

    Definition Classes
    AnyRef
  26. final def notify(): Unit

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

    Definition Classes
    AnyRef
  28. final def requireValidIdent(name: String): Unit

    Annotations
    @inline()
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped