Explorer

core.compile-string-globals

description
The global section entries of the strings of the string table: a mutable (ref null string) initialized to null, set by the start function (core.compile-string-init)
type
Fn(strings: List<String>, index: Number) -> List<Number>
expression
fn(strings$0, index$1) =>
  match @core.list-get(list: $0, index: $1) {
    #none(_) =>
      [],
    #some(item$2) =>
      @core.list-concat(
        left: [
          @wasm.value-type-ref-null,
          @core.wasm-type-string,
          1,
          @wasm.ref-null,
          @core.wasm-type-string,
          @wasm.end
        ],
        right: @core.compile-string-globals(strings: $0, index: @core.plus(left: $1, right: 1))
      )
  }
visibility
public
core.compile-string-globals (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: wjr7YKdFtdg6Tcr8fFDSkH2pT5a6GlZPsre-02I83yk
content hash: VYf44u6oIqc5gPEH8hzs1Hc8Y5LpQlLEs71NYXwp-rU