package ppxlib

  1. Overview
  2. Docs
Standard library for ppx rewriters

Install

Dune Dependency

Authors

Maintainers

Sources

ppxlib-0.22.0.tbz
sha256=3eeb91e03966662284a3222e612dee7f4fa2b7637c53d9572d2a74134bb96d7a
sha512=425051dff9df53579a6edd17369d66c10f87a78daeddf1691e50997990ed643e874fcc6a30112a4dacbfd2d0097a19445354e04cd920d9522f76c51cdbc7f1db

doc/ppxlib/Ppxlib/Extension/Expert/index.html

Module Extension.Expert

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 -> (Migrate_parsetree.Ast_412.Parsetree.payload, 'a, 'b) Ast_pattern.t -> 'a -> ('context, 'b) t
val declare_with_path_arg : string -> 'context Context.t -> (Migrate_parsetree.Ast_412.Parsetree.payload, 'a, 'b) Ast_pattern.t -> (arg:Longident.t Loc.t option -> 'a) -> ('context, 'b) t
val convert : (_, 'a) t list -> loc:Location.t -> (string Location.loc * Migrate_parsetree.Ast_412.Parsetree.payload) -> 'a option
OCaml

Innovation. Community. Security.