Module Parsexp__Positions.Builder

type positions
type t
val create : ?initial_pos:pos ‑> Base.unit ‑> t

add, add_twice and add_newline must be called with strictly increasing offset values.

val add : t ‑> offset:Base.int ‑> Base.unit

int is absolute offset of the position

val add_twice : t ‑> offset:Base.int ‑> Base.unit
val add_newline : t ‑> offset:Base.int ‑> Base.unit

int is absolute offset of the newline character

val contents : t ‑> positions
val reset : t ‑> pos ‑> Base.unit