ppxlib

Standard library for ppx rewriters
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library ppxlib
Module Ppxlib . Extension . Expert
type ('context, 'payload) t

Type of declared expert extensions.

The 'context type parameter describes where the extension is expected and the 'payload one what its payload should contain.

val declare : string -> 'context Context.t -> ( Astlib.Ast_500.Parsetree.payload, 'a, 'b ) Ast_pattern.t -> 'a -> ( 'context, 'b ) t
val declare_with_path_arg : string -> 'context Context.t -> ( Astlib.Ast_500.Parsetree.payload, 'a, 'b ) Ast_pattern.t -> ( arg:Longident.t Loc.t option -> 'a ) -> ( 'context, 'b ) t
val convert_res : ( _, 'a ) t list -> loc:Location.t -> (string Astlib.Location.loc * Astlib.Ast_500.Parsetree.payload) -> ( 'a option, Location.Error.t Stdppx.NonEmptyList.t ) result
val convert : ( _, 'a ) t list -> loc:Location.t -> (string Astlib.Location.loc * Astlib.Ast_500.Parsetree.payload) -> 'a option