To focus the search input from anywhere on the page, press the 'S' key.
in-package search v0.1.0
val register_code_transformation : name:string -> impl:(Parsetree.structure -> Parsetree.structure) -> intf:(Parsetree.signature -> Parsetree.signature) -> unit
Register a code transformation.
impl is the function that is applied on implementation files and
intf is the one applied on interface files.
name is a logical name for the transformation (such as
bin_prot). It is not currently used but we might use it in the future for debugging purposes.
Suitable for -pp and also usable as a standalone command line tool.
If the first command line argument is
-as-ppx then it will run as a ppx rewriter.