package coq-lsp
Language Server Protocol native server for Coq
Install
Dune Dependency
Authors
Maintainers
Sources
coq-lsp-0.2.3.9.0.tbz
sha256=8776582dddfe768623870cf540ff6ba1e96a44a36e85db18ab93d238d640f92a
sha512=2837889bf99bfe715bd0e752782211a76a14aac71ed37a4fb784f4f0abe338352c9c6d8caa37daf79c036997add1cb306c523f793625b38709f3b5e245380223
doc/src/coq-lsp.serlib/ser_declarations.ml.html
Source file ser_declarations.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 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* <O___,, * (see version control and CREDITS file for authors & dates) *) (* VV/ **************************************************************) (* // * This file is distributed under the terms of the *) (* * GNU Lesser General Public License Version 2.1 *) (* * (see LICENSE file for the text of the license) *) (************************************************************************) (************************************************************************) (* SerAPI: Coq interaction protocol with bidirectional serialization *) (************************************************************************) (* Copyright 2016-2019 MINES ParisTech -- License LGPL 2.1+ *) (* Copyright 2019-2023 Inria -- License LGPL 2.1+ *) (* Written by: Emilio J. Gallego Arias and others *) (************************************************************************) open Sexplib.Std open Ppx_hash_lib.Std.Hash.Builtin open Ppx_compare_lib.Builtin let hash_fold_array = hash_fold_array_frozen module Rtree = Ser_rtree module Names = Ser_names module Context = Ser_context module Constr = Ser_constr module Sorts = Ser_sorts module Univ = Ser_univ module UVars = Ser_uvars module CPrimitives = Ser_cPrimitives module Vmvalues = Ser_vmvalues module Conv_oracle = Ser_conv_oracle module Mod_subst = Ser_mod_subst module Opaqueproof = Ser_opaqueproof module Vmemitcodes = Ser_vmemitcodes module Retroknowledge = Ser_retroknowledge module Uint63 = Ser_uint63 module Float64 = Ser_float64 module Pstring = Ser_pstring module Vmlibrary = Ser_vmlibrary type template_arity = [%import: Declarations.template_arity] [@@deriving sexp,yojson,hash,compare] type ('a, 'b) declaration_arity = [%import: ('a, 'b) Declarations.declaration_arity] [@@deriving sexp,yojson,hash,compare] type recarg_type = [%import: Declarations.recarg_type] [@@deriving sexp,yojson,hash,compare] type recarg = [%import: Declarations.recarg] [@@deriving sexp,yojson,hash,compare] type wf_paths = [%import: Declarations.wf_paths] [@@deriving sexp,yojson,hash,compare] type regular_inductive_arity = [%import: Declarations.regular_inductive_arity [@with Term.sorts := Sorts.t;]] [@@deriving sexp,yojson,hash,compare] type inductive_arity = [%import: Declarations.inductive_arity] [@@deriving sexp,yojson,hash,compare] type squash_info = [%import: Declarations.squash_info] [@@deriving sexp,yojson,hash,compare] type one_inductive_body = [%import: Declarations.one_inductive_body] [@@deriving sexp,yojson,hash,compare] (* type set_predicativity = * [%import: Declarations.set_predicativity] * [@@deri (* type engagement = * [%import: Declarations.engagement] * [@@deriving sexp] *) type inline = [%import: Declarations.inline] [@@deriving sexp,yojson,hash,compare] type universes = [%import: Declarations.universes] [@@deriving sexp,yojson,hash,compare] type ('a, 'b, 'c) constant_def = [%import: ('a, 'b, 'c) Declarations.constant_def] [@@deriving sexp,yojson,hash,compare] type typing_flags = [%import: Declarations.typing_flags] [@@deriving sexp,yojson,hash,compare] (* type work_list = * [%import: Declarations.work_list] * [@@deriving sexp] *) (* type abstr_info = * [%import: Declarations.abstr_info] * [@@deriving sexp] *) (* type cooking_info = * [%import: Declarations.cooking_info] * [@@deriving sexp] *) type ('a, 'b) pconstant_body = [%import: ('a, 'b) Declarations.pconstant_body] [@@deriving sexp,yojson,hash,compare] type constant_body = [%import: Declarations.constant_body] [@@deriving sexp,yojson,hash,compare] let sexp_of_constant_body e = (* We cannot handle VM values *) sexp_of_constant_body { e with const_body_code = None } (* module Retroknowledge = struct module MRK = struct type t = Retroknowledge.action let name = "Retroknowledge.action" end module B_ = SerType.Opaque(MRK) type action = B_.t [@@deriving sexp,yojson,hash,compare] end *) type recursivity_kind = [%import: Declarations.recursivity_kind] [@@deriving sexp,yojson,hash,compare] type record_info = [%import: Declarations.record_info] [@@deriving sexp,yojson,hash,compare] type template_universes = [%import: Declarations.template_universes] [@@deriving sexp,yojson,hash,compare] type mutual_inductive_body = [%import: Declarations.mutual_inductive_body [@with Context.section_context := Context.Named.t;]] [@@deriving sexp,yojson,hash,compare] type instance_mask = [%import: UVars.Instance.mask] [@@deriving sexp,yojson,hash,compare] type 'a head_pattern = [%import: 'a Declarations.head_pattern [@with sort_pattern := Sorts.pattern]] [@@deriving sexp,yojson,hash,compare] type pattern_elimination = [%import: Declarations.pattern_elimination] [@@deriving sexp,yojson,hash,compare] and head_elimination = [%import: Declarations.head_elimination] [@@deriving sexp,yojson,hash,compare] and pattern_argument = [%import: Declarations.pattern_argument] [@@deriving sexp,yojson,hash,compare] type rewrite_rule = [%import: Declarations.rewrite_rule] [@@deriving sexp,yojson,hash,compare] type rewrite_rules_body = [%import: Declarations.rewrite_rules_body] [@@deriving sexp,yojson,hash,compare] type ('ty,'a) functorize = [%import: ('ty, 'a) Declarations.functorize] [@@deriving sexp,yojson,hash,compare] type 'a with_declaration = [%import: 'a Declarations.with_declaration] [@@deriving sexp,yojson,hash,compare] type mod_body = [%import: Declarations.mod_body] [@@deriving sexp,yojson,hash,compare] type mod_type = [%import: Declarations.mod_type] [@@deriving sexp,yojson,hash,compare] module WMBBiject = struct type ('a, 'b) t = ('a, 'b) Declarations.when_mod_body [@@@ocaml.warning "-27"] type ('a, 'b) _t = 'b option [@@deriving sexp,yojson,hash,compare] [@@@ocaml.warning "+27"] let to_t (type a b) (x : b option) : (a, b) Declarations.when_mod_body = match x with | Some x -> Obj.magic @@ Declarations.ModBodyVal x | None -> Obj.magic @@ Declarations.ModTypeNul let of_t (type a) (type b) (x : (a, b) Declarations.when_mod_body) : b option = match x with | Declarations.ModBodyVal x -> Some x | Declarations.ModTypeNul -> None end module WMB = SerType.Biject2(WMBBiject) type ('a, 'b) when_mod_body = ('a, 'b) WMB.t [@@deriving sexp,yojson,hash,compare] type 'a module_alg_expr = [%import: 'a Declarations.module_alg_expr] [@@deriving sexp,yojson,hash,compare] type 'a functor_alg_expr = [%import: 'a Declarations.functor_alg_expr] [@@deriving sexp,yojson,hash,compare] type structure_field_body = [%import: Declarations.structure_field_body] [@@deriving sexp,yojson,hash,compare] and structure_body = [%import: Declarations.structure_body] [@@deriving sexp,yojson,hash,compare] and module_signature = [%import: Declarations.module_signature] [@@deriving sexp,yojson,hash,compare] and module_expression = [%import: Declarations.module_expression] [@@deriving sexp,yojson,hash,compare] and module_implementation = [%import: Declarations.module_implementation] [@@deriving sexp,yojson,hash,compare] and 'a generic_module_body = [%import: 'a Declarations.generic_module_body] [@@deriving sexp,yojson,hash,compare] and module_body = [%import: Declarations.module_body] [@@deriving sexp,yojson,hash,compare] and module_type_body = [%import: Declarations.module_type_body] [@@deriving sexp,yojson,hash,compare]
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>