package ppxlib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

This module allows to declare extensions that do not produce a value of the context type. This is typically useful for extensions point that depends on more things from the context than the path and location.

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 : Base.String.t -> 'context Context.t -> (Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ast_pattern.t -> 'a -> ('context, 'b) t
val declare_with_path_arg : Base.String.t -> 'context Context.t -> (Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ast_pattern.t -> (arg:Longident.t Loc.t Base.Option.t -> 'a) -> ('context, 'b) t
val convert : (_, 'a) t Base.List.t -> loc:Location.t -> (string Location.loc * Ppxlib_ast__.Import.Parsetree.payload) -> 'a Base.Option.t
OCaml

Innovation. Community. Security.