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
41 KiB

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ErlangAst (infer.ErlangFrontend.ErlangAst)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.1"/><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">ErlangFrontend</a> &#x00BB; ErlangAst</nav><h1>Module <code>ErlangFrontend.ErlangAst</code></h1><nav class="toc"><ul><li><a href="#basics">Basics</a></li><li><a href="#s8.2:-atomic-literals">S8.2: Atomic literals</a></li><li><a href="#s8.4:-expressions">S8.4: Expressions</a></li><li><a href="#s8.5-clauses">S8.5 Clauses</a></li><li><a href="#s8.1:-module-declarations-and-forms">S8.1: Module declarations and forms</a></li></ul></nav></header><aside><p>Erlang abstract forms, following https://erlang.org/doc/apps/erts/absform.html</p></aside><section><header><h3 id="basics"><a href="#basics" class="anchor"></a>Basics</h3></header><dl><dt class="spec type" id="type-module_reference"><a href="#type-module_reference" class="anchor"></a><code><span class="keyword">type</span> module_reference</code><code> = </code><table class="variant"><tr id="type-module_reference.ModuleName" class="anchored"><td class="def constructor"><a href="#type-module_reference.ModuleName" class="anchor"></a><code>| </code><code><span class="constructor">ModuleName</span> <span class="keyword">of</span> string</code></td></tr><tr id="type-module_reference.ModuleMissing" class="anchored"><td class="def constructor"><a href="#type-module_reference.ModuleMissing" class="anchor"></a><code>| </code><code><span class="constructor">ModuleMissing</span></code></td></tr><tr id="type-module_reference.ModuleVariable" class="anchored"><td class="def constructor"><a href="#type-module_reference.ModuleVariable" class="anchor"></a><code>| </code><code><span class="constructor">ModuleVariable</span> <span class="keyword">of</span> string</code></td></tr></table></dt><dt class="spec type" id="type-function_reference"><a href="#type-function_reference" class="anchor"></a><code><span class="keyword">type</span> function_reference</code><code> = </code><table class="variant"><tr id="type-function_reference.FunctionName" class="anchored"><td class="def constructor"><a href="#type-function_reference.FunctionName" class="anchor"></a><code>| </code><code><span class="constructor">FunctionName</span> <span class="keyword">of</span> string</code></td></tr><tr id="type-function_reference.FunctionVariable" class="anchored"><td class="def constructor"><a href="#type-function_reference.FunctionVariable" class="anchor"></a><code>| </code><code><span class="constructor">FunctionVariable</span> <span class="keyword">of</span> string</code></td></tr></table></dt><dt class="spec type" id="type-function_"><a href="#type-function_" class="anchor"></a><code><span class="keyword">type</span> function_</code><code> = </code><code>{</code><table class="record"><tr id="type-function_.module_" class="anchored"><td class="def field"><a href="#type-function_.module_" class="anchor"></a><code>module_ : <a href="index.html#type-module_reference">module_reference</a>;</code></td></tr><tr id="type-function_.function_" class="anchored"><td class="def field"><a href="#type-function_.function_" class="anchor"></a><code>function_ : <a href="index.html#type-function_reference">function_reference</a>;</code></td></tr><tr id="type-function_.arity" class="anchored"><td class="def field"><a href="#type-function_.arity" class="anchor"></a><code>arity : int;</code></td></tr></table><code>}</code></dt><dt class="spec type" id="type-line"><a href="#type-line" class="anchor"></a><code><span class="keyword">type</span> line</code><code> = int</code></dt><dt class="spec type" id="type-record_name"><a href="#type-record_name" class="anchor"></a><code><span class="keyword">type</span> r