package ostap

  1. Overview
  2. Docs

Module Trap.StringSource

String trap --- traps strings to locations.

Sourcetype t = string

Type of trapped items.

Sourceval attach : t -> Msg.Locator.t -> unit

attach x loc attaches loc to item x.

Sourceval locate : t -> Msg.Locator.t

locate x gets the location for x.

Sourceval copier : t -> t -> unit

copier x returns copying function which will preserve trap information.

Sourceval cleanup : unit -> unit

Cleans up all the trapping information.

OCaml

Innovation. Community. Security.