package ocp-index
Lightweight completion and documentation browsing for OCaml libraries
Install
Dune Dependency
Authors
Maintainers
Sources
1.3.3.tar.gz
md5=738dd32765ce0b6b6423620cc62b7db9
sha512=6360240c951ac64baf9b3736c9a37c41a5ac8c5ddf52e723019fb5ef294e786e245712fd88f408bd8f6881d8741ab152872181062acd81443eec07d1d703e85a
doc/src/ocp-index.lib/indexTypes.ml.html
Source file indexTypes.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
(**************************************************************************) (* *) (* Copyright 2013 OCamlPro *) (* *) (* All rights reserved. This file is distributed under the terms of *) (* the Lesser GNU Public License version 3.0. *) (* *) (* This software is distributed in the hope that it will be useful, *) (* but WITHOUT ANY WARRANTY; without even the implied warranty of *) (* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *) (* Lesser GNU General Public License for more details. *) (* *) (**************************************************************************) (* * This module contains open types, for use within the library only. Its interface should only be exported through closed types in LibIndex. *) (** Internal representation of types *) type ty = Outcometree.out_sig_item (** The type of files we get our data from *) type orig_file = Cmt of string | Cmti of string | Cmi of string (** Contains the information on a given identifier *) type info = { path: string list; orig_path: string list; kind: kind; name: string; ty: ty option; loc_sig: Location.t Lazy.t; loc_impl: Location.t Lazy.t; doc: string option Lazy.t; file: orig_file; (* library: string option *) } (** The kind of elements that can be stored in the trie *) and kind = | Type | Value | Exception | OpenType | Field of info | Variant of info | Method of info | Module | ModuleType | Class | ClassType | Keyword (** Lazy trie structure holding the info on all identifiers *) type t = (char, info) IndexTrie.t (* * Raised when cmi/cmt/cmti files can't be loaded. Probably a different version of OCaml *) exception Bad_format of string
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>