模組 Attr_helper

module Attr_helper: sig .. end

屬性輔助函式

警告:此模組不穩定,屬於 compiler-libs 的一部分。


type error = 
| Multiple_attributes of string
| No_payload_expected of string
val get_no_payload_attribute : string -> Parsetree.attributes -> string Asttypes.loc option

以下函式的 string 引數是我們正在尋找的屬性名稱。如果引數為 "foo",這些函式將會找到名稱為 "foo""ocaml.foo" 的屬性

val has_no_payload_attribute : string -> Parsetree.attributes -> bool
exception Error of Location.t * error
val report_error : Format.formatter -> error -> unit