| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | open BenchUtil |
| 12 | |
| 13 | val join_to_source : dummy:'a -> source:string -> (char_loc * 'a) list -> (source_loc * 'a) list |
| 14 | (** Given a list of values ordered by locations with no overlaps but |
| 15 | maybe gaps, associate them to substrings of the source and fill in |
| 16 | the gaps using [dummy]. |
| 17 | |
| 18 | When a gap is all whitespace in the source, it is merged to the |
| 19 | next value (dropped if at the end). |
| 20 | *) |