core.compile-direct-callee
- description
- The Wasm function index of the callee when it is a part whose expression is a function: the functions of the expression and the parts follow the runtime functions (core.wasm-runtime-function-types), and the part's function is the first of its functions (base). none for other callees
- type
Fn( function: @core.callee, ctx: Record{ parts: List<Record{id: String, expression: @core.expression, base: Number}>, inlining: List<String>, part_index: List<List<Record{id: String, expression: @core.expression, base: Number}>>, strings: List<Record{value: String, address: Number}> } ) -> Union{#none, #some(Number)}
- expression
fn(function$0, ctx$1) => match $0 { #part_reference(reference$2) => match @core.list-hash-index-find(index: $1.part_index, field: "id", value: $2.part_definition_event_hash) { #some(part$3) => match @core.is-function-expression(expr: $3.expression) { true => #some(@core.plus(left: @core.list-length(value: @core.wasm-runtime-function-types), right: $3.base)), false => #none }, #none(_) => #none }, _ => #none }- visibility
- public
core.compile-direct-callee (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204) id: eLaoXnJ_hw5ast192NRs1whnsFO7HqT5FBfkCqBoO3A content hash: Xu7lsbnIoBPIEnQYUqTPJzry4bk22rv7PMNlteBPboE