moonpool/dev/ocaml/Attr_helper/index.html
2023-08-28 17:11:38 +00:00

5 lines
No EOL
3.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Attr_helper (ocaml.Attr_helper)</title><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.2.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../index.html">ocaml</a> &#x00BB; Attr_helper</nav><header class="odoc-preamble"><h1>Module <code><span>Attr_helper</span></code></h1><p>Helpers for attributes</p><p><b>Warning:</b> this module is unstable and part of <span class="xref-unresolved">compiler-libs</span>.</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-error"><a href="#type-error" class="anchor"></a><code><span><span class="keyword">type</span> error</span><span> = </span></code><ol><li id="type-error.Multiple_attributes" class="def variant constructor anchored"><a href="#type-error.Multiple_attributes" class="anchor"></a><code><span>| </span><span><span class="constructor">Multiple_attributes</span> <span class="keyword">of</span> string</span></code></li><li id="type-error.No_payload_expected" class="def variant constructor anchored"><a href="#type-error.No_payload_expected" class="anchor"></a><code><span>| </span><span><span class="constructor">No_payload_expected</span> <span class="keyword">of</span> string</span></code></li></ol></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-get_no_payload_attribute"><a href="#val-get_no_payload_attribute" class="anchor"></a><code><span><span class="keyword">val</span> get_no_payload_attribute :
<span><span>string list</span> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../Parsetree/index.html#type-attributes">Parsetree.attributes</a> <span class="arrow">&#45;&gt;</span></span>
<span><span>string <a href="../Asttypes/index.html#type-loc">Asttypes.loc</a></span> option</span></span></code></div><div class="spec-doc"><p>The <code>string list</code> argument of the following functions is a list of alternative names for the attribute we are looking for. For instance:</p><pre class="language-ocaml"><code>[&quot;foo&quot;; &quot;ocaml.foo&quot;]</code></pre></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-has_no_payload_attribute"><a href="#val-has_no_payload_attribute" class="anchor"></a><code><span><span class="keyword">val</span> has_no_payload_attribute : <span><span>string list</span> <span class="arrow">&#45;&gt;</span></span> <span><a href="../Parsetree/index.html#type-attributes">Parsetree.attributes</a> <span class="arrow">&#45;&gt;</span></span> bool</span></code></div></div><div class="odoc-spec"><div class="spec exception anchored" id="exception-Error"><a href="#exception-Error" class="anchor"></a><code><span><span class="keyword">exception</span> </span><span><span class="exception">Error</span> <span class="keyword">of</span> <a href="../Location/index.html#type-t">Location.t</a> * <a href="#type-error">error</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-report_error"><a href="#val-report_error" class="anchor"></a><code><span><span class="keyword">val</span> report_error : <span><a href="../Stdlib/Format/index.html#type-formatter">Stdlib.Format.formatter</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="#type-error">error</a> <span class="arrow">&#45;&gt;</span></span> unit</span></code></div></div></div></body></html>