package ocaml-base-compiler

  1. Overview
  2. Docs
Official 4.04.2 release

Install

Dune Dependency

Authors

Maintainers

Sources

4.04.2.tar.gz
sha256=6277a477956fc7b76f28af9941dce2984d0df809a0361093eb2e28234bf9c8ed
md5=5ce661a2d8b760dc77c2facf46ccddd1

doc/ocamlcommon/Attr_helper/index.html

Module Attr_helper

Helpers for attributes

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

The string list argument of the following functions is a list of alternative names for the attribute we are looking for. For instance:

  ["foo"; "ocaml.foo"]
val has_no_payload_attribute : string list -> Parsetree.attributes -> bool
exception Error of Location.t * error
val report_error : Format.formatter -> error -> unit
OCaml

Innovation. Community. Security.