DunolinterSourceA data structure to hold linters with a binary search lookup based on field name.
A handler for fields found in a dune stanza (in files "dune", "dune-project", etc.)
Returns the path of the file where the stanza was located when it was loaded.
Stanzas that do not have support for predicate enforcement shall be ignored when using this interface, they will be left untouched by dunolint.
If you are writing a custom rewriter perhaps perhaps you'll find it easier to use directly the stanza API provided by a linter library, in which case you'll need this accessor. In this use of the library, you perform side effects to 'a directly using the linter api, rather than going through the enforcement of configurable conditions.
That is the sexp that correspond to the entire stanza held by this rewriter. These are the sexps found at the top level of dune files, for example (library ..) or (executable ..).
This accessor is provided if you desire to implement a low-level rewriter using Sexps_rewriter.
That is the Sexps_rewriter that was created to read the stanza held by this rewriter.