Module Deriving.GeneratorSource
Source
val make :
?attributes:Ppxlib.Attribute.packed list ->
?deps:Ppxlib.Deriving.t list ->
?unused_code_warnings:bool ->
('f, 'output_ast) Ppxlib.Deriving.Args.t ->
(loc:Ppxlib.Location.t -> path:string -> 'input_ast -> 'f) ->
('output_ast, 'input_ast) Ppxlib.Deriving.Generator.tmake 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:Ppxlib.Attribute.packed list ->
?deps:Ppxlib.Deriving.t list ->
?unused_code_warnings:bool ->
(loc:Ppxlib.Location.t -> path:string -> 'input_ast -> 'output_ast) ->
('output_ast, 'input_ast) Ppxlib.Deriving.Generator.tSame as make, but without arguments.
Source
val apply :
('output_ast, 'input_ast) Ppxlib.Deriving.Generator.t ->
name:string ->
ctxt:Ppxlib.Expansion_context.Deriver.t ->
'input_ast ->
(string * Astlib.Ast_502.Parsetree.expression) list ->
'output_ast