package portia

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type location = {
  1. file : string;
  2. mtime : float;
  3. lineno : int;
  4. colno : int;
  5. offset : int;
  6. size : int;
}
type id = string
type t = {
  1. locs : location list;
  2. id : id;
  3. output : bool;
}
val spaces : string -> string
val indent : string -> string -> string
val colno_at : string -> int
val lineno_at : int -> string -> int
val read_file : string -> int -> int -> Bytes.t
val location_in_file : string -> int -> int -> location
val location_print : 'a BatInnerIO.output -> location -> unit
val mtime_print : (Batteries.Float.t, 'a) BatIO.printer
val locations_print : 'a BatInnerIO.output -> location list -> unit
val print : 'a BatInnerIO.output -> t -> unit
exception FileChanged of string
val fetch_loc : location -> Bytes.t
val ignore_missing : bool Batteries.ref
val registry : (id, t) Batteries.Hashtbl.t
val add : id -> bool -> string -> int -> int -> unit
val lookup : id -> t
val expanded_loc : string -> location -> string
val expanded_body : string -> t -> string
OCaml

Innovation. Community. Security.