package ostap

  1. Overview
  2. Docs

Module Msg.Locator

Various ways to denote the location in the source text.

Sourcetype t =
  1. | No
    (*

    No location defined

    *)
  2. | Point of Coord.t
    (*

    One point in the text

    *)
  3. | Interval of Coord.t * Coord.t
    (*

    Contiguous interval of points

    *)
  4. | Set of t list
    (*

    Non-contiguous set of locations

    *)

Locator type.

Sourceval makeInterval : t -> t -> t

Makes simple interval of two points or set of two non-point locators.

Sourceval least : t -> Coord.t
Sourceval most : t -> Coord.t
Sourceval updateToString : FileLoc.r -> string -> unit
Sourceval toString : t -> string

String conversion.

Sourceval compare : t -> t -> int

Comparison function.

OCaml

Innovation. Community. Security.