diff --git a/src/reason-parser/reason_attributes.mli b/src/reason-parser/reason_attributes.mli new file mode 100644 index 000000000..a0e0cb43e --- /dev/null +++ b/src/reason-parser/reason_attributes.mli @@ -0,0 +1,32 @@ +open Ppxlib + +type attributesPartition = + { arityAttrs : attributes + ; docAttrs : attributes + ; stdAttrs : attributes + ; jsxAttrs : attributes + ; stylisticAttrs : attributes + ; uncurried : bool + } +(** Kinds of attributes *) + +val partitionAttributes : + ?partDoc:bool + -> ?allowUncurry:bool + -> attribute list + -> attributesPartition +(** Partition attributes into kinds *) + +val extract_raw_literal : attribute list -> label option * attribute list + +val maybe_remove_stylistic_attrs : + attribute list + -> should_preserve:bool + -> attribute list + +val without_stylistic_attrs : attribute list -> attribute list +val has_open_notation_attr : attribute list -> bool +val has_jsx_attributes : attribute list -> bool +val has_preserve_braces_attrs : attribute list -> bool +val has_quoted_extension_attrs : attribute list -> bool +val extractStdAttrs : attribute list -> attributes