package ocaml-webworker

  1. Overview
  2. Docs
type t = {
  1. filename : string;
  2. text : string;
}
val dump : t -> [> `Assoc of (string * [> `String of string ]) list ]
val dump_short : t -> [> `Assoc of (string * [> `String of string ]) list ]
val print_position : unit -> [< `End | `Logical of int * int | `Offset of int | `Start ] -> string
type position = [
  1. | `Start
  2. | `Offset of int
  3. | `Logical of int * int
  4. | `End
]
exception Found of int
val find_line : int -> t -> int
val find_offset : t -> int -> int -> int
module Trace2 : sig ... end
val get_offset : Trace2.t -> t -> [< `End | `Logical of int * int | `Offset of int | `Start ] -> [> `Offset of int ]
val get_logical : Trace2.t -> t -> [< `End | `Logical of int * int | `Offset of int | `Start ] -> [> `Logical of int * int ]
val get_lexing_pos : Trace2.t -> t -> [< `End | `Logical of int * int | `Offset of int | `Start ] -> Std.Lexing.position
val substitute : Trace2.t -> t -> [< `End | `Logical of int * int | `Offset of int | `Start ] -> [< `End | `Length of int | `Logical of int * int | `Offset of int | `Start ] -> string -> t
val filename : t -> string
val unitname : 'a -> string
val text : t -> string
OCaml

Innovation. Community. Security.