Object

org.scalajs.core.tools.javascript

Trees

Related Doc: package javascript

Permalink

object Trees

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Trees
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

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

    Permalink

    Syntactic apply.

    Syntactic apply. It is a method call if fun is a dot-select or bracket-select. It is a function call otherwise.

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

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

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

    Permalink

    Binary operation (always preserves pureness).

    Binary operation (always preserves pureness).

    Operations which do not preserve pureness are not allowed in this tree. These are notably +=, -=, *=, /= and %=

  5. class Block extends Tree

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

    Permalink
  7. case class BracketSelect(qualifier: Tree, item: Tree)(implicit pos: Position) extends Tree with Product with Serializable

    Permalink
  8. case class Break(label: Option[Ident] = None)(implicit pos: Position) extends Tree with Product with Serializable

    Permalink
  9. case class ClassDef(className: Option[Ident], parentClass: Option[Tree], members: List[Tree])(implicit pos: Position) extends Tree with Product with Serializable

    Permalink
  10. case class ComputedName(tree: Tree) extends PropertyName with Product with Serializable

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

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

    Permalink
  13. case class Delete(prop: Tree)(implicit pos: Position) extends Tree with Product with Serializable

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

    Permalink
  15. case class DocComment(text: String)(implicit pos: Position) extends Tree with Product with Serializable

    Permalink
  16. case class DotSelect(qualifier: Tree, item: Ident)(implicit pos: Position) extends Tree with Product with Serializable

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

    Permalink
  18. case class Function(args: List[ParamDef], body: Tree)(implicit pos: Position) extends Tree with Product with Serializable

    Permalink
  19. case class FunctionDef(name: Ident, args: List[ParamDef], body: Tree)(implicit pos: Position) extends Tree with Product with Serializable

    Permalink
  20. case class GetterDef(static: Boolean, name: PropertyName, body: Tree)(implicit pos: Position) extends Tree with Product with Serializable

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

    Permalink
  22. case class If(cond: Tree, thenp: Tree, elsep: Tree)(implicit pos: Position) extends Tree with Product with Serializable

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

    Permalink
  24. case class Labeled(label: Ident, body: Tree)(implicit pos: Position) extends Tree with Product with Serializable

    Permalink
  25. case class Let(name: Ident, mutable: Boolean, rhs: Option[Tree])(implicit pos: Position) extends Tree with LocalDef with Product with Serializable

    Permalink

    ES6 let or const (depending on the mutable flag).

  26. sealed trait Literal extends Tree

    Permalink

    Marker for literals.

    Marker for literals. Literals are always pure.

  27. sealed trait LocalDef extends Tree

    Permalink
  28. case class MethodDef(static: Boolean, name: PropertyName, args: List[ParamDef], body: Tree)(implicit pos: Position) extends Tree with Product with Serializable

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

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

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

    Permalink
  32. case class ParamDef(name: Ident, rest: Boolean)(implicit pos: Position) extends Tree with LocalDef with Product with Serializable

    Permalink
  33. sealed trait PropertyName extends AnyRef

    Permalink
  34. case class Return(expr: Tree)(implicit pos: Position) extends Tree with Product with Serializable

    Permalink
  35. case class SetterDef(static: Boolean, name: PropertyName, param: ParamDef, body: Tree)(implicit pos: Position) extends Tree with Product with Serializable

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

    Permalink
  37. case class Spread(items: Tree)(implicit pos: Position) extends Tree with Product with Serializable

    Permalink

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

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

    It is only valid in ECMAScript 6, in the args/items of a New, Apply, or ArrayConstr.

    items

    An iterable whose items will be spread

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

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

    Permalink
  40. case class Switch(selector: Tree, cases: List[(Tree, Tree)], default: Tree)(implicit pos: Position) extends Tree with Product with Serializable

    Permalink
  41. case class This()(implicit pos: Position) extends Tree with Product with Serializable

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

    Permalink
  43. sealed abstract class Tree extends AnyRef

    Permalink

    AST node of JavaScript.

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

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

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

    Permalink

    Unary operation (always preserves pureness).

    Unary operation (always preserves pureness).

    Operations which do not preserve pureness are not allowed in this tree. These are notably ++ and --

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

    Permalink
  48. case class VarDef(name: Ident, rhs: Option[Tree])(implicit pos: Position) extends Tree with LocalDef with Product with Serializable

    Permalink
  49. case class VarRef(ident: Ident)(implicit pos: Position) extends Tree with Product with Serializable

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

    Permalink

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. object BinaryOp extends Serializable

    Permalink
  5. object Block

    Permalink
  6. object Ident extends Serializable

    Permalink
  7. object UnaryOp extends Serializable

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped