package ppxlib

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

Module Extension.ContextSource

Sourceval eq : 'a t -> 'b t -> ('a, 'b) equality
Sourceval get_extension : 'a t -> 'a -> ((string Astlib.Location.loc * Astlib.Ast_500.Parsetree.payload) * Astlib.Ast_500.Parsetree.attribute list) option
Sourceval 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.

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

Innovation. Community. Security.