Module Sexps_rewriter.Position

val loc : t -> Parsexp.Positions.range -> Loc.t

Transform a range into a loc, for example to report an error with Error_log.

val range : Parsexp.Positions.range -> Loc.Range.t

To be used in conjunctions with File_rewriter.