man-pages/man3/Attr_helper.3o.html
2021-03-31 01:06:50 +01:00

124 lines
1.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of Attr_helper</TITLE>
</HEAD><BODY>
<H1>Attr_helper</H1>
Section: OCaml library (3o)<BR>Updated: 2020-01-30<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
Attr_helper - Helpers for attributes
<A NAME="lbAC">&nbsp;</A>
<H2>Module</H2>
Module Attr_helper
<A NAME="lbAD">&nbsp;</A>
<H2>Documentation</H2>
<P>
Module
<B>Attr_helper</B>
<BR>&nbsp;:&nbsp;
<B>sig end</B>
<P>
<P>
Helpers for attributes
<P>
Warning: this module is unstable and part of
<B>Compiler_libs</B>
.
<P>
<P>
<P>
<P>
<P>
<I>type error </I>
=
<BR>&nbsp;|&nbsp;Multiple_attributes
<B>of </B>
<B>string</B>
<BR>&nbsp;|&nbsp;No_payload_expected
<B>of </B>
<B>string</B>
<BR>&nbsp;
<P>
<P>
<P>
<P>
<I>val get_no_payload_attribute </I>
:
<B>string list -&gt; Parsetree.attributes -&gt; string Asttypes.loc option</B>
<P>
The
<B>string list</B>
argument of the following functions is a list of
alternative names for the attribute we are looking for. For instance:
<P>
<P>
<B>[foo; ocaml.foo]</B>
<B></B>
<P>
<P>
<P>
<I>val has_no_payload_attribute </I>
:
<B>string list -&gt; Parsetree.attributes -&gt; bool</B>
<P>
<P>
<P>
<P>
<I>exception Error </I>
<B>of </B>
<B>Location.t * error</B>
<P>
<P>
<P>
<P>
<P>
<I>val report_error </I>
:
<B>Format.formatter -&gt; error -&gt; unit</B>
<P>
<P>
<P>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">Module</A><DD>
<DT id="3"><A HREF="#lbAD">Documentation</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:36 GMT, March 31, 2021
</BODY>
</HTML>