package wax-lib
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Libraries for Wax, a Rust-like syntax for WebAssembly
Install
dune-project
Dependency
Authors
Maintainers
Sources
wax-0.1.0.tbz
sha256=41b580846af8d41bdf6c3f005f62e38feda3e60fe2e9e4aa440db34ce515a153
sha512=4b3a181fcc7d743194a8647260870fb5190770066a197bcc48104c2b77fd40c643228b795c2bcd6b29a120820e969eb42a37a9bcec98b3f608d13f152d9f6579
doc/src/wax-lib.wasm/naming.ml.html
Source file naming.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36open Ast (* [Func] carries an inline record, so each field is rebound and the record reconstructed explicitly (an inline record cannot be captured with [as]). *) let rec map_fields fields = List.map (fun field -> match field.desc with | Text.Func { id = None; typ; locals; instrs; exports } when match exports with | export :: _ -> Lexer.is_valid_identifier export.desc | [] -> false -> let export = List.hd exports in { field with desc = Text.Func { id = Some export; typ; locals; instrs; exports }; } | Text.Module_if_annotation { cond; then_fields; else_fields } -> { field with desc = Text.Module_if_annotation { cond; then_fields = { then_fields with desc = map_fields then_fields.desc }; else_fields = Option.map (fun e -> { e with desc = map_fields e.desc }) else_fields; }; } | _ -> field) fields let name_functions_from_exports (name, fields) = (name, map_fields fields)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>