module Context : sig ... endval declare : Ppx_core__.Import.string ‑> 'context Context.t ‑> (Ppx_core__.Import.payload, 'a, 'context) Ast_pattern.t ‑> (loc:Location.t ‑> path:Ppx_core__.Import.string ‑> 'a) ‑> tdeclare name context pattern expander declares the extension names name for
context.
expander is responsible for producing the code to replace the extension in the
AST. It receives as argument:
loc: the location of the enclosing node. For instance for expression it is the
pexp_loc fieldpath: the current module pathval declare_inline : Ppx_core__.Import.string ‑> 'context Context.t ‑> (Ppx_core__.Import.payload, 'a, 'context Ppx_core__.Import.list) Ast_pattern.t ‑> (loc:Location.t ‑> path:Ppx_core__.Import.string ‑> 'a) ‑> tInline the result of the expansion into its parent. Only works for these contexts:
class_fieldclass_type_fieldsignature_itemstructure_itemmodule For_context : sig ... endval filter_by_context : 'a Context.t ‑> t Ppx_core__.Import.list ‑> 'a For_context.t Ppx_core__.Import.listGiven a context and a list of extension expander, returns all the ones that are for this context.
module Expert : sig ... endval check_unused : Ast_traverse.itermodule V2 : sig ... endval check_context_for_inline : func:Ppx_core__.Import.string ‑> 'a Context.t ‑> Ppx_core__.Import.unit