package ppxlib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val eq : 'a t -> 'b t -> ('a, 'b) equality
val get_extension : 'a t -> 'a -> ((string Astlib.Location.loc * Astlib.Ast_500.Parsetree.payload) * Astlib.Ast_500.Parsetree.attribute list) option
val node_of_extension : ?loc:Location.t -> ?x:'a -> 'a t -> (string Astlib.Location.loc * Astlib.Ast_500.Parsetree.payload) -> 'a

node_of_extension ctx ext turns an extension node into an AST node of the same type as ctx. By default, the location of the node is Location.none.

Only for the special case of Ppx_import, a value of type type_declaration has to be passed as the named argument x, the extension node will be added as the ptype_manifest of x.

val merge_attributes : 'a t -> 'a -> Astlib.Ast_500.Parsetree.attribute list -> 'a
val merge_attributes_res : 'a t -> 'a -> Astlib.Ast_500.Parsetree.attribute list -> ('a, Location.Error.t Stdppx.NonEmptyList.t) result
OCaml

Innovation. Community. Security.