abstract class WithTreeEval extends CustomJSHelperBuilder
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WithTreeEval
- CustomJSHelperBuilder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new WithTreeEval()(implicit ctx: WasmContext, pos: Position)
Abstract Value Members
-
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 classLoadJSModule
for a native JS module classSelectJSNativeMember
- Attributes
- protected
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addInput(tree: TreeOrJSSpread): Tree
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
build(resultType: Type)(body: Tree): FunctionID
- Definition Classes
- CustomJSHelperBuilder
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
genGlobalRef(name: String): VarRef
- Definition Classes
- CustomJSHelperBuilder
-
def
genJSNativeLoadSpec(jsNativeLoadSpec: JSNativeLoadSpec): Tree
- Definition Classes
- CustomJSHelperBuilder
-
def
genJSParamDef(param: ParamDef): ParamDef
- Definition Classes
- CustomJSHelperBuilder
-
def
genJSParamDefs(params: List[ParamDef], restParam: Option[ParamDef]): (List[ParamDef], Option[ParamDef])
- Definition Classes
- CustomJSHelperBuilder
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newLocalIdent(name: LocalName): DelayedIdent
- Definition Classes
- CustomJSHelperBuilder
-
def
newLocalIdent(origName: String): DelayedIdent
- Definition Classes
- CustomJSHelperBuilder
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()