package ppx_windtrap
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=378b2a34a665f05a0164ea238ed1d983c3a15dba2e80de6b7cea9c98e42d66a9
sha512=def7701df56f813d5369915ce97807bbffad4a0d2d749d6120d276ebb211fbb94dd8a15184bf9cf2d89e0f7bf939108a953e4087c0f09fb8c87f6e9f76c09350
doc/windtrap_mutate_ppx/Windtrap_mutate_ppx/index.html
Module Windtrap_mutate_ppxSource
The registration of the mutation 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_mutate, 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 mutants describe the code that runs. The one runtime dependency of the library is windtrap.runtime.
A driver may link this library and ppx_windtrap.coverage 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 last, so this rewriter runs first and the coverage rewriter receives its guards. Neither population is then the one that a single backend gives, and Instrument states what changes.