package ppxlib
Standard infrastructure for ppx rewriters
Install
Dune Dependency
Authors
Maintainers
Sources
757f6c284b1fe748d5027eef3bbef924b6bbd7ce.tar.gz
sha256=89a98c95ddd0bfbac17b5a936f6811af7097be3258c482d5859b73e9de9b4552
sha512=b19306473d867252d382e58e9b697531c5edccdc9283b5eaf72f524803c2fca2a58a5e8f25bee198b00de82cf8ef805b43f7488791c3ac5beb0ffba938ded826
doc/ppxlib/Ppxlib/Deriving/Generator/index.html
Module Deriving.Generator
Source
Source
val make :
?attributes:Attribute.packed list ->
?deps:t list ->
?unused_code_warnings:bool ->
('f, 'output_ast) Args.t ->
(loc:Location.t -> path:string -> 'input_ast -> 'f) ->
('output_ast, 'input_ast) t
make args gen
creates a generator that can be passed to Deriving.add
to generate an output AST from an input AST and generator arguments.
deps
is a list of derivers that this generator depends on.
attributes
is deprecated and unused. It is only kept for backward compatibility.
unused_code_warning
controls whether unused code warnings (e.g. warnings 32 and 60) are enabled or suppressed in emitted code. Default is false
, which suppresses the warnings.
Source
val make_noarg :
?attributes:Attribute.packed list ->
?deps:t list ->
?unused_code_warnings:bool ->
(loc:Location.t -> path:string -> 'input_ast -> 'output_ast) ->
('output_ast, 'input_ast) t
Same as make
, but without arguments.
Source
val apply :
('output_ast, 'input_ast) t ->
name:string ->
ctxt:Expansion_context.Deriver.t ->
'input_ast ->
(string * Astlib.Ast_502.Parsetree.expression) list ->
'output_ast
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>