package lsp
LSP protocol implementation in OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
jsonrpc-1.2.0.tbz
sha256=e4e56590b9af02160e5af7733763897d7cfe3f9b876692af4d4184ab0fce4bcb
sha512=724d5190a678ca8a3f3c13915cbfcf8d3cce8efa43e0dde130b14c45065b6ccd22507951e79977bcecf361c7928f271d312b87642bb2c52f33669c3e952a7e1b
doc/lsp.stdune/Stdune/Fdecl/index.html
Module Stdune.Fdecl
Forward declarations
create to_dyn
creates a forward declaration. The to_dyn
parameter is used for reporting errors in set
, set_idempotent
and get
.
val set : 'a t -> 'a -> unit
set t x
sets the value that will be returned by get t
to x
. Raises if set
was already called.
val set_idempotent : equal:('a -> 'a -> bool) -> 'a t -> 'a -> unit
set_idempotent ~equal t x
sets the value that will be returned by get t
to x
. Raises if set
or set_idempotent
was already called with a value that is not equal
to x
.
val get : 'a t -> 'a
get t
returns the x
if set comp x
was called. Raises if set
has not been called yet.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>