package ppxlib
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Standard library for ppx rewriters
Install
dune-project
Dependency
Authors
Maintainers
Sources
ppxlib-0.28.0.tbz
sha256=d87ae5f9a081206308ca964809b50a66aeb8e83d254801e8b9675448b60cf377
sha512=03270d43e91485e63c7dc115a71933ffd8cb2910c273d605d2800fa69f523dcd4de1fbe31fd6c2f6979675c681343bcf4e35be06934565bf28edf4ea03f5da8e
doc/ppxlib/Ppxlib/Expansion_context/Deriver/index.html
Module Expansion_context.DeriverSource
Type of expansion contexts for derivers
Return the location of the item to which the deriver is being applied
Return the code path for the given context In Driver, Deriving and Extension, the context is initialized so that the file_path component of the code_path is determined from the first location found in the input AST. That means that:
- It's the empty string in empty structures or signatures
- It can be altered by line directives
Return the input name for the given context. In Driver, Deriving and Extension, the context argument is initialized so that the input_name matches the input filename passed to the driver on the command line. That means that:
- It has a value even for empty files
- It is not affected by line directives
- It is
"_none_"when usingDriver.map_structureorDriver.map_signature
Can be used within a ppx preprocessor to know which tool is calling it "ocamlc", "ocamlopt", "ocamldep", "ocaml", ... .
Wrap a fun ~loc ~path into a fun ~ctxt
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>