package ppx_windtrap
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9a8c7926c77b1c258010e027eb219164e46a036bfe2df32b34b8781884c8d11c
sha512=10d53181d709e713e8437774aecf8465153c7ce2cda5f42ede02c92cb6ada38a6dcd091566807d3c75b6c8017ca1ca012989ad4aa50788c6ab1fd6c4a1e927de
doc/windtrap_coverage_ppx/Windtrap_coverage_ppx/index.html
Module Windtrap_coverage_ppxSource
The registration of the coverage rewriter with the ppxlib driver.
The module exports no value, and linking it into a driver is its whole interface. When the module is initialized it registers Instrument.transform_impl_file with the ppxlib driver, under the name windtrap_coverage, as a whole-file instrumentation of implementation files.
The instrumentation is positioned after every rewriter that is not itself an instrumentation, so the function receives the expanded file and its points describe the code that runs. The one runtime dependency of the library is windtrap.runtime.
A driver may link this library and ppx_windtrap.mutate together. Of two such instrumentations ppxlib applies first the one that registered last. The driver that dune builds for a stanza naming both backends registers this library first, so the mutation rewriter runs first and this one receives its guards. Neither population is then the one that a single backend gives, and Instrument states what changes.