package ocp-index

  1. Overview
  2. Docs
type coloriser = {
  1. f : 'a. IndexTypes.kind -> ('a, Stdlib.Format.formatter, unit) Stdlib.format -> Stdlib.Format.formatter -> 'a;
}
val color : coloriser
val no_color : coloriser
val name : ?colorise:coloriser -> Stdlib.Format.formatter -> IndexTypes.info -> unit

short name of the identifier

val path : ?short:bool -> ?colorise:coloriser -> Stdlib.Format.formatter -> IndexTypes.info -> unit

fully qualified name (with short, returns the path the ident was found at, not the path where it was originally created)

val kind : ?colorise:coloriser -> Stdlib.Format.formatter -> IndexTypes.info -> unit
val ty : ?colorise:coloriser -> Stdlib.Format.formatter -> IndexTypes.info -> unit
val doc : ?escaped:bool -> ?colorise:coloriser -> Stdlib.Format.formatter -> IndexTypes.info -> unit
val loc : ?root:string -> ?intf:bool -> ?colorise:coloriser -> Stdlib.Format.formatter -> IndexTypes.info -> unit
val file : ?colorise:coloriser -> Stdlib.Format.formatter -> IndexTypes.info -> unit
val info : ?colorise:coloriser -> Stdlib.Format.formatter -> IndexTypes.info -> unit

summary of the information

val format : ?root:string -> ?separate:bool -> string -> ?colorise:coloriser -> Stdlib.Format.formatter -> IndexTypes.info -> unit

print following a custom format string (%n,%p,%k,%t,%d,%l,%s,%f,%i are interpreted). If ~separate is set to true, escapes are formatted independently.

OCaml

Innovation. Community. Security.