Up

Module Expert

Signature

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 : string -> 'context Context.t -> (Parsetree.payload, 'a, 'b) Ast_pattern.t -> 'a -> ('context, 'b) t
val convert : (_, 'a) t list -> loc:Location.t -> Parsetree.extension -> 'a option