package ppxlib
Standard infrastructure for ppx rewriters
Install
Dune Dependency
Authors
Maintainers
Sources
ppxlib-0.33.0.tbz
sha256=ffa44ef551f23b75e21dbd698a30310431381aaf140b9fe4b81c2e70a2d2c63a
sha512=cd865efc78e85d662fab3d05de7675a46252a241db44cbf13a930017c6890da5f161fbf8511b97abd9d61bffca0cb84b3adf580b55a3820afdb4a2337e9a4a63
doc/ppxlib/Ppxlib/Expansion_helpers/Quoter/index.html
Module Expansion_helpers.Quoter
Source
Generate expressions in a hygienic way.
The idea is that whenever we want to refer to an expression in generated code we first quote it. The result will be an identifier that is guaranteed to refer to the expression it was created from. This way it is impossible for quoted fragments to refer to newly introduced expressions.
For more information, see the section on quoting in the good practices section.
Creates a quoter. A quoter guarantees to give names that do not clash with any other names used before
quote t e
returns the expression that is safe to use in place of e
in generated code
Source
val sanitize :
t ->
Astlib.Ast_500.Parsetree.expression ->
Astlib.Ast_500.Parsetree.expression
sanitize t e
Returns e
wrapped with bindings for all quoted expressions in the quoter t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>