Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions src/reason-parser/reason_attributes.mli
Original file line number Diff line number Diff line change
@@ -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
Loading