aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/loc.mli
diff options
context:
space:
mode:
authorGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2017-09-18 18:14:25 +0200
committerGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2017-09-18 20:40:28 +0200
commit46a17141e6a19fff9dfeb1ef18cbba054e34e3c3 (patch)
tree32abe045a5f5b7a9e452f53c3dd2eeddaa2a75f1 /lib/loc.mli
parent26b9ad1d0423f8dc1dbd4d90557469db6a5eaa03 (diff)
Reporting locations in error messages about notation formats.
Diffstat (limited to 'lib/loc.mli')
-rw-r--r--lib/loc.mli5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/loc.mli b/lib/loc.mli
index d4061e044..fde490cc8 100644
--- a/lib/loc.mli
+++ b/lib/loc.mli
@@ -40,6 +40,11 @@ val merge : t -> t -> t
val merge_opt : t option -> t option -> t option
(** Merge locations, usually generating the largest possible span *)
+val shift_loc : int -> int -> t -> t
+(** [shift_loc loc n p] shifts the beginning of location by [n] and
+ the end by [p]; it is assumed that the shifts do not change the
+ lines at which the location starts and ends *)
+
(** {5 Located exceptions} *)
val add_loc : Exninfo.info -> t -> Exninfo.info