package ppxlib

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

Module Attribute.FloatingSource

Sourcetype ('context, 'payload) t
Sourcemodule Context : sig ... end
Sourceval declare : string -> 'a Context.t -> (Astlib.Ast_502.Parsetree.payload, 'b, 'c) Ast_pattern.t -> 'b -> ('a, 'c) t
Sourceval declare_with_name_loc : string -> 'a Context.t -> (Astlib.Ast_502.Parsetree.payload, 'b, 'c) Ast_pattern.t -> (name_loc:Location.t -> 'b) -> ('a, 'c) t

Same as declare but the callback receives the location of the name of the attribute.

Sourceval declare_with_attr_loc : string -> 'a Context.t -> (Astlib.Ast_502.Parsetree.payload, 'b, 'c) Ast_pattern.t -> (attr_loc:Location.t -> 'b) -> ('a, 'c) t

Same as declare but the callback receives the location of the attribute.

Sourceval name : (_, _) t -> string
Sourceval convert_res : ('a, 'b) t list -> 'a -> ('b option, Location.Error.t Stdppx.NonEmptyList.t) result
Sourceval convert : ('a, 'b) t list -> 'a -> 'b option