package ppxlib
Standard library for ppx rewriters
Install
Dune Dependency
Authors
Maintainers
Sources
ppxlib-0.27.0.tbz
sha256=764b96121d6ffd6a73820e0ec5235176bfc42b94cf2ff97e32d068a5c4b28c62
sha512=2dcce0be6acdb3e185bfdad2785303a405c617f99949316abe6793f785d7227c10795ca49e79290bd385873da635191b44e8a5c211de114a168846d5d26f505c
doc/ppxlib/Ppxlib/Expansion_context/Extension/index.html
Module Expansion_context.Extension
Source
Type of expansion contexts for extensions
Return the location of the extension point being expanded
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_structure
orDriver.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)"
>