package ppxlib
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Standard infrastructure for ppx rewriters
Install
dune-project
Dependency
Authors
Maintainers
Sources
ppxlib-0.34.0.tbz
sha256=d77d97165a158d7ae56b7c0387cd04e9927d7e7e797ca1039ffb5bb17a6661a7
sha512=84954f375b0c3ed063c874c47cc2597cceea338de0f567f64f340bd4e3569ef88421369b92bd5830701216bcdb88d78f50f3896c8edeb13250f0e7337c106b7d
doc/ppxlib/Ppxlib/Driver/Cookies/index.html
Module Driver.CookiesSource
Source
val get :
t ->
string ->
(Astlib.Ast_500.Parsetree.expression, 'a -> 'a, 'b) Ast_pattern.t ->
'b optionget cookies name pattern look for a cookie named name and parse it using pattern. Raises if the parsing fails.
Source
val get_res :
t ->
string ->
(Astlib.Ast_500.Parsetree.expression, 'a -> 'a, 'b) Ast_pattern.t ->
('b option, Location.Error.t Stdppx.NonEmptyList.t) resultget cookies name pattern look for a cookie named name and parse it using pattern, returning a result instead of raising when the parsing fails.
set cookies name expr set cookie name to expr.
Register a callback that is called before a rewriting. The handler is expected to lookup some cookies and set some global variables.
This API is a temporary hack to allow to migrate from add_arg to the use of cookie, until ppxlib has been upgraded to pass cookies through.
Source
val add_simple_handler :
string ->
(Astlib.Ast_500.Parsetree.expression, 'a -> 'a, 'b) Ast_pattern.t ->
f:('b option -> unit) ->
unitShorthand for: add_handler (fun t -> f (get t name pattern))
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>