Packages

abstract class WithTreeEval extends CustomJSHelperBuilder

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

Instance Constructors

  1. new WithTreeEval()(implicit ctx: WasmContext, pos: Position)

Abstract Value Members

  1. abstract def evalTreeAtCallSite(tree: Tree, expectedType: Type): Unit

    Evaluates an arbitrary Tree with the given expected type and puts it on the call site's stack.

    Evaluates an arbitrary Tree with the given expected type and puts it on the call site's stack.

    Concrete subclasses must implement this method to evaluate trees in their own call site context.

    The given tree is guaranteed to be none of:

    • JSGlobalRef
    • LoadJSConstructor for a native JS class
    • LoadJSModule for a native JS module class
    • SelectJSNativeMember
    Attributes
    protected

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. def addInput(tree: TreeOrJSSpread): Tree
  5. def addWasmInput(origName: String, wasmType: Type)(evalValue: ⇒ Unit): VarRef

    Adds an input of an arbitrary Wasm type, to be evaluated on the Wasm stack.

    Adds an input of an arbitrary Wasm type, to be evaluated on the Wasm stack.

    The evalValue must add code to the call site context to evaluate the value on the Wasm site. It is passed as by-name parameter to show intent, but is in fact called immediately.

    returns

    A js.VarRef that can be used in the JS helper to read the input.

    Definition Classes
    CustomJSHelperBuilder
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def build(resultType: Type)(body: Tree): FunctionID
    Definition Classes
    CustomJSHelperBuilder
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def genGlobalRef(name: String): VarRef
    Definition Classes
    CustomJSHelperBuilder
  13. def genJSNativeLoadSpec(jsNativeLoadSpec: JSNativeLoadSpec): Tree
    Definition Classes
    CustomJSHelperBuilder
  14. def genJSParamDef(param: ParamDef): ParamDef
    Definition Classes
    CustomJSHelperBuilder
  15. def genJSParamDefs(params: List[ParamDef], restParam: Option[ParamDef]): (List[ParamDef], Option[ParamDef])
    Definition Classes
    CustomJSHelperBuilder
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def newLocalIdent(name: LocalName): DelayedIdent
    Definition Classes
    CustomJSHelperBuilder
  21. def newLocalIdent(origName: String): DelayedIdent
    Definition Classes
    CustomJSHelperBuilder
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from CustomJSHelperBuilder

Inherited from AnyRef

Inherited from Any

Ungrouped