You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
9.4 KiB

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Annot (infer.IR.Annot)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.2"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> <a href="../../index.html">infer</a> &#x00BB; <a href="../index.html">IR</a> &#x00BB; Annot</nav><h1>Module <code>IR.Annot</code></h1></header><aside><p>The Smallfoot Intermediate Language: Annotations</p></aside><div class="spec module" id="module-F"><a href="#module-F" class="anchor"></a><code><span class="keyword">module</span> F = Stdlib.Format</code></div><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> t</code><code> = </code><code>{</code><table class="record"><tr id="type-t.class_name" class="anchored"><td class="def field"><a href="#type-t.class_name" class="anchor"></a><code>class_name : string;</code></td><td class="doc"><p>name of the annotation</p></td></tr><tr id="type-t.parameters" class="anchored"><td class="def field"><a href="#type-t.parameters" class="anchor"></a><code>parameters : <span><a href="index.html#type-parameter">parameter</a> list</span>;</code></td></tr></table><code>}</code></dt><dd><p>Type to represent an <code>@Annotation</code> with potentially complex parameter values such as arrays or other annotations.</p></dd></dl><dl><dt class="spec type" id="type-parameter"><a href="#type-parameter" class="anchor"></a><code><span class="keyword">and</span> parameter</code><code> = </code><code>{</code><table class="record"><tr id="type-parameter.name" class="anchored"><td class="def field"><a href="#type-parameter.name" class="anchor"></a><code>name : <span>string option</span>;</code></td></tr><tr id="type-parameter.value" class="anchored"><td class="def field"><a href="#type-parameter.value" class="anchor"></a><code>value : <a href="index.html#type-value">value</a>;</code></td></tr></table><code>}</code></dt><dt class="spec type" id="type-value"><a href="#type-value" class="anchor"></a><code><span class="keyword">and</span> value</code><code> = </code><table class="variant"><tr id="type-value.Str" class="anchored"><td class="def constructor"><a href="#type-value.Str" class="anchor"></a><code>| </code><code><span class="constructor">Str</span> <span class="keyword">of</span> string</code></td></tr><tr id="type-value.Bool" class="anchored"><td class="def constructor"><a href="#type-value.Bool" class="anchor"></a><code>| </code><code><span class="constructor">Bool</span> <span class="keyword">of</span> bool</code></td></tr><tr id="type-value.Enum" class="anchored"><td class="def constructor"><a href="#type-value.Enum" class="anchor"></a><code>| </code><code><span class="constructor">Enum</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-value.class_typ" class="anchored"><td class="def field"><a href="#type-value.class_typ" class="anchor"></a><code>class_typ : <a href="../Typ/index.html#type-t">Typ.t</a>;</code></td></tr><tr id="type-value.value" class="anchored"><td class="def field"><a href="#type-value.value" class="anchor"></a><code>value : string;</code></td></tr></table><code>}</code></td></tr><tr id="type-value.Array" class="anchored"><td class="def constructor"><a href="#type-value.Array" class="anchor"></a><code>| </code><code><span class="constructor">Array</span> <span class="keyword">of</span> <span><a href="index.html#type-value">value</a> list</span></code></td></tr><tr id="type-value.Class" class="anchored"><td class="def constructor"><a href="#type-value.Class" class="anchor"></a><code>| </code><code><span class="constructor">Class</span> <span class="keyword">of</span> <a href="../Typ/index.html#type-t">Typ.t</a></code></td></tr><tr id="type-value.Annot" class="anchored"><td class="def constructor"><a href="#type-value.Annot" cla