package parsexp

  1. Overview
  2. Docs

Module Positions.BuilderSource

Sourcetype t
Sourceval create : ?initial_pos:pos -> unit -> t

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

Sourceval add : t -> offset:int -> unit

int is absolute offset of the position

Sourceval add_twice : t -> offset:int -> unit
Sourceval add_newline : t -> offset:int -> unit

int is absolute offset of the newline character

Sourceval contents : t -> t
Sourceval reset : t -> pos -> unit
OCaml

Innovation. Community. Security.