package linol
LSP server library
Install
Dune Dependency
Authors
Maintainers
Sources
linol-0.10.tbz
sha256=174bb8cad5b8b0c260d62b0a85da13c4f5caba4fcee042ee58284b09de7896ea
sha512=77460788407c72a33fbe289ec9c78421117543594b3524a5c8fe836f0e272c5ceb1e1074b91c1d1f476f89b75b6f63847a8021675a782ff36457c9626121a7f4
doc/src/linol.lsp/extension.ml.html
Source file extension.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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
open Import open Json.Conv module DebugEcho = struct module T = struct type t = { message : string } [@@deriving_inline yojson] let _ = fun (_ : t) -> () let t_of_yojson = (let _tp_loc = "lsp/src/extension.ml.DebugEcho.T.t" in function | `Assoc field_yojsons as yojson -> let message_field = ref Ppx_yojson_conv_lib.Option.None and duplicates = ref [] and extra = ref [] in let rec iter = function | (field_name, _field_yojson) :: tail -> (match field_name with | "message" -> (match Ppx_yojson_conv_lib.( ! ) message_field with | Ppx_yojson_conv_lib.Option.None -> let fvalue = string_of_yojson _field_yojson in message_field := Ppx_yojson_conv_lib.Option.Some fvalue | Ppx_yojson_conv_lib.Option.Some _ -> duplicates := field_name :: Ppx_yojson_conv_lib.( ! ) duplicates) | _ -> if Ppx_yojson_conv_lib.( ! ) Ppx_yojson_conv_lib.Yojson_conv.record_check_extra_fields then extra := field_name :: Ppx_yojson_conv_lib.( ! ) extra else ()); iter tail | [] -> () in iter field_yojsons; (match Ppx_yojson_conv_lib.( ! ) duplicates with | _ :: _ -> Ppx_yojson_conv_lib.Yojson_conv_error.record_duplicate_fields _tp_loc (Ppx_yojson_conv_lib.( ! ) duplicates) yojson | [] -> (match Ppx_yojson_conv_lib.( ! ) extra with | _ :: _ -> Ppx_yojson_conv_lib.Yojson_conv_error.record_extra_fields _tp_loc (Ppx_yojson_conv_lib.( ! ) extra) yojson | [] -> (match Ppx_yojson_conv_lib.( ! ) message_field with | Ppx_yojson_conv_lib.Option.Some message_value -> { message = message_value } | _ -> Ppx_yojson_conv_lib.Yojson_conv_error.record_undefined_elements _tp_loc yojson [ ( Ppx_yojson_conv_lib.poly_equal (Ppx_yojson_conv_lib.( ! ) message_field) Ppx_yojson_conv_lib.Option.None , "message" ) ]))) | _ as yojson -> Ppx_yojson_conv_lib.Yojson_conv_error.record_list_instead_atom _tp_loc yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> t) ;; let _ = t_of_yojson let yojson_of_t = (function | { message = v_message } -> let bnds : (string * Ppx_yojson_conv_lib.Yojson.Safe.t) list = [] in let bnds = let arg = yojson_of_string v_message in ("message", arg) :: bnds in `Assoc bnds : t -> Ppx_yojson_conv_lib.Yojson.Safe.t) ;; let _ = yojson_of_t [@@@deriving.end] end module Params = T module Result = T end module DebugTextDocumentGet = struct module Params = Types.TextDocumentPositionParams module Result = struct type t = string option let yojson_of_t = function | None -> `Null | Some s -> `String s ;; let t_of_yojson = function | `Null -> None | `String s -> Some s | json -> Json.error "DebugTextDocumentGet" json ;; end end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>