package vsrocq-language-server
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
VSRocq language server
Install
dune-project
Dependency
Authors
Maintainers
Sources
vsrocq-language-server-2.3.3.tar.gz
md5=c3f17c36f162c6be3ed6f35a30e3a18d
sha512=32c67c0a915d0983332337d891ccc40d3204b04e83c8d307cffdda06df7798db8bedb74e705101d2c83d595cfb2e4f82ecbf576fe3c385ec7ead9689f50f7d05
doc/src/vsrocq-language-server.dm/completionItems.ml.html
Source file completionItems.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 44open Constr open Libnames open Nametab open Printer type completion_level = Fully | Partially | No_completion let symbol_prefix (completes: completion_level option) = match completes with | None -> "" | Some level -> match level with | Fully -> "★ " | Partially -> "☆ " | No_completion -> "" type completion_item = { ref : Names.GlobRef.t; path : full_path; typ : types; env : Environ.env; sigma : Evd.evar_map; completes : completion_level option; mutable debug_info : string; } let mk_completion_item sigma ref env (c : constr) : completion_item = { ref = ref; path = path_of_global ref; typ = c; env = env; sigma = sigma; completes = None; debug_info = ""; } let pp_completion_item (item : completion_item) : (string * string * string * string) = let pr = pr_global item.ref in let name = Pp.string_of_ppcmds pr in let path = string_of_path item.path ^ "\n" ^ item.debug_info in let typ = Pp.string_of_ppcmds (pr_ltype_env item.env item.sigma item.typ) in (Printf.sprintf "%s%s" (symbol_prefix item.completes) name, name, typ, path)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>