Module Attribute.Floating

type ('context, 'payload) t
module Context : sig ... end
val declare : string -> 'a Context.t -> (Astlib.Ast_502.Parsetree.payload, 'b, 'c) Ast_pattern.t -> 'b -> ('a, 'c) t
val 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.

val 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.

val name : (_, _) t -> string
val convert_res : ('a, 'b) t list -> 'a -> ('b option, Location.Error.t Stdppx.NonEmptyList.t) Stdlib.result
val convert : ('a, 'b) t list -> 'a -> 'b option
val convert_attr_res : ('a, 'b) t -> Astlib.Ast_502.Parsetree.attribute -> ('b option, Location.Error.t Stdppx.NonEmptyList.t) Stdlib.result