moonpool/dev/ocaml/Ast_helper/Typ/index.html

59 lines
No EOL
11 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>Typ (ocaml.Ast_helper.Typ)</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; <a href="../index.html">Ast_helper</a> &#x00BB; Typ</nav><header class="odoc-preamble"><h1>Module <code><span>Ast_helper.Typ</span></code></h1><p>Type expressions</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-mk"><a href="#val-mk" class="anchor"></a><code><span><span class="keyword">val</span> mk :
<span>?loc:<a href="../index.html#type-loc">loc</a> <span class="arrow">&#45;&gt;</span></span>
<span>?attrs:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../Parsetree/index.html#type-core_type_desc">Parsetree.core_type_desc</a> <span class="arrow">&#45;&gt;</span></span>
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-attr"><a href="#val-attr" class="anchor"></a><code><span><span class="keyword">val</span> attr : <span><a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="../../Parsetree/index.html#type-attribute">Parsetree.attribute</a> <span class="arrow">&#45;&gt;</span></span> <a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-any"><a href="#val-any" class="anchor"></a><code><span><span class="keyword">val</span> any : <span>?loc:<a href="../index.html#type-loc">loc</a> <span class="arrow">&#45;&gt;</span></span> <span>?attrs:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">&#45;&gt;</span></span> <span>unit <span class="arrow">&#45;&gt;</span></span> <a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-var"><a href="#val-var" class="anchor"></a><code><span><span class="keyword">val</span> var : <span>?loc:<a href="../index.html#type-loc">loc</a> <span class="arrow">&#45;&gt;</span></span> <span>?attrs:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">&#45;&gt;</span></span> <span>string <span class="arrow">&#45;&gt;</span></span> <a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-arrow"><a href="#val-arrow" class="anchor"></a><code><span><span class="keyword">val</span> arrow :
<span>?loc:<a href="../index.html#type-loc">loc</a> <span class="arrow">&#45;&gt;</span></span>
<span>?attrs:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../Asttypes/index.html#type-arg_label">Asttypes.arg_label</a> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a> <span class="arrow">&#45;&gt;</span></span>
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-tuple"><a href="#val-tuple" class="anchor"></a><code><span><span class="keyword">val</span> tuple :
<span>?loc:<a href="../index.html#type-loc">loc</a> <span class="arrow">&#45;&gt;</span></span>
<span>?attrs:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">&#45;&gt;</span></span>
<span><span><a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a> list</span> <span class="arrow">&#45;&gt;</span></span>
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-constr"><a href="#val-constr" class="anchor"></a><code><span><span class="keyword">val</span> constr :
<span>?loc:<a href="../index.html#type-loc">loc</a> <span class="arrow">&#45;&gt;</span></span>
<span>?attrs:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../index.html#type-lid">lid</a> <span class="arrow">&#45;&gt;</span></span>
<span><span><a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a> list</span> <span class="arrow">&#45;&gt;</span></span>
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-object_"><a href="#val-object_" class="anchor"></a><code><span><span class="keyword">val</span> object_ :
<span>?loc:<a href="../index.html#type-loc">loc</a> <span class="arrow">&#45;&gt;</span></span>
<span>?attrs:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">&#45;&gt;</span></span>
<span><span><a href="../../Parsetree/index.html#type-object_field">Parsetree.object_field</a> list</span> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../Asttypes/index.html#type-closed_flag">Asttypes.closed_flag</a> <span class="arrow">&#45;&gt;</span></span>
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-class_"><a href="#val-class_" class="anchor"></a><code><span><span class="keyword">val</span> class_ :
<span>?loc:<a href="../index.html#type-loc">loc</a> <span class="arrow">&#45;&gt;</span></span>
<span>?attrs:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../index.html#type-lid">lid</a> <span class="arrow">&#45;&gt;</span></span>
<span><span><a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a> list</span> <span class="arrow">&#45;&gt;</span></span>
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-alias"><a href="#val-alias" class="anchor"></a><code><span><span class="keyword">val</span> alias :
<span>?loc:<a href="../index.html#type-loc">loc</a> <span class="arrow">&#45;&gt;</span></span>
<span>?attrs:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a> <span class="arrow">&#45;&gt;</span></span>
<span>string <span class="arrow">&#45;&gt;</span></span>
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-variant"><a href="#val-variant" class="anchor"></a><code><span><span class="keyword">val</span> variant :
<span>?loc:<a href="../index.html#type-loc">loc</a> <span class="arrow">&#45;&gt;</span></span>
<span>?attrs:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">&#45;&gt;</span></span>
<span><span><a href="../../Parsetree/index.html#type-row_field">Parsetree.row_field</a> list</span> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../Asttypes/index.html#type-closed_flag">Asttypes.closed_flag</a> <span class="arrow">&#45;&gt;</span></span>
<span><span><span><a href="../../Asttypes/index.html#type-label">Asttypes.label</a> list</span> option</span> <span class="arrow">&#45;&gt;</span></span>
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-poly"><a href="#val-poly" class="anchor"></a><code><span><span class="keyword">val</span> poly :
<span>?loc:<a href="../index.html#type-loc">loc</a> <span class="arrow">&#45;&gt;</span></span>
<span>?attrs:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">&#45;&gt;</span></span>
<span><span><a href="../index.html#type-str">str</a> list</span> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a> <span class="arrow">&#45;&gt;</span></span>
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-package"><a href="#val-package" class="anchor"></a><code><span><span class="keyword">val</span> package :
<span>?loc:<a href="../index.html#type-loc">loc</a> <span class="arrow">&#45;&gt;</span></span>
<span>?attrs:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../index.html#type-lid">lid</a> <span class="arrow">&#45;&gt;</span></span>
<span><span><span>(<a href="../index.html#type-lid">lid</a> * <a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a>)</span> list</span> <span class="arrow">&#45;&gt;</span></span>
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-extension"><a href="#val-extension" class="anchor"></a><code><span><span class="keyword">val</span> extension :
<span>?loc:<a href="../index.html#type-loc">loc</a> <span class="arrow">&#45;&gt;</span></span>
<span>?attrs:<a href="../index.html#type-attrs">attrs</a> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../Parsetree/index.html#type-extension">Parsetree.extension</a> <span class="arrow">&#45;&gt;</span></span>
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-force_poly"><a href="#val-force_poly" class="anchor"></a><code><span><span class="keyword">val</span> force_poly : <span><a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a> <span class="arrow">&#45;&gt;</span></span> <a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-varify_constructors"><a href="#val-varify_constructors" class="anchor"></a><code><span><span class="keyword">val</span> varify_constructors :
<span><span><a href="../index.html#type-str">str</a> list</span> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a> <span class="arrow">&#45;&gt;</span></span>
<a href="../../Parsetree/index.html#type-core_type">Parsetree.core_type</a></span></code></div><div class="spec-doc"><p><code>varify_constructors newtypes te</code> is type expression <code>te</code>, of which any of nullary type constructor <code>tc</code> is replaced by type variable of the same name, if <code>tc</code>'s name appears in <code>newtypes</code>. Raise <code>Syntaxerr.Variable_in_scope</code> if any type variable inside <code>te</code> appears in <code>newtypes</code>.</p><ul class="at-tags"><li class="since"><span class="at-tag">since</span> 4.05</li></ul></div></div></div></body></html>