package ppx_inline_test
Syntax extension for writing in-line tests in ocaml code
Install
Dune Dependency
Authors
Maintainers
Sources
ppx_inline_test-v0.16.0.tar.gz
sha256=216462f8fe988587d1e90f4a10aeb38664facb6eaeb3df60a32e9fb1a6bfbc67
doc/src/ppx_inline_test.libname/ppx_inline_test_libname.ml.html
Source file ppx_inline_test_libname.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
open Ppxlib let libname_and_partition = ref None let () = Driver.add_arg "-inline-test-lib" (Arg.String (fun lib -> let p = match String.index lib ':' with | exception Not_found -> lib, None | i -> String.sub lib 0 i, Some (String.sub lib (i + 1) (String.length lib - i - 1)) in libname_and_partition := Some p)) ~doc: " A base name to use for generated identifiers (has to be globally unique in a \ program). ppx_inline_test (and ppx_bench) are disabled unless this flag is \ passed." ;; let () = Driver.Cookies.add_simple_handler "library-name" Ast_pattern.(estring __) ~f:(function | None -> () | Some lib -> libname_and_partition := Some (lib, None)) ;; let get () = !libname_and_partition
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>