package merlin-lib
Merlin's libraries
Install
Dune Dependency
Authors
Maintainers
Sources
merlin-5.3-502.tbz
sha256=2cea46f12397fa6e31ef0c0d4f5e11c1cfd916ee49420694005c95ebb3aa24bc
sha512=e94abb9ae38149245337db033e2c3891c7ec772168e99abf1bda0216a894c0854e7170b56fe88eba83ec98f2ebc0f5c7c723e8db14f59eeb6dd348bec12c6d62
doc/src/merlin-lib.ocaml_typing/saved_parts.ml.html
Source file saved_parts.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
let attribute = Location.mknoloc "merlin.saved-parts" module H = Ephemeron.K1.Make(struct type t = string let hash = Hashtbl.hash let equal (a : t) (b : t) = a = b end) let table = H.create 7 let gensym = let counter = ref 0 in fun () -> incr counter; !counter let store parts = let id = string_of_int (gensym ()) in let key = Parsetree.Pconst_integer (id, None) in H.add table id parts; key let find = function | Parsetree.Pconst_integer (id, None) -> begin try H.find table id with Not_found -> [] end | _ -> assert false
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>