<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>Location (infer.IBase.Location)</title><linkrel="stylesheet"href="../../../odoc.css"/><metacharset="utf-8"/><metaname="generator"content="odoc 1.5.2"/><metaname="viewport"content="width=device-width,initial-scale=1.0"/><scriptsrc="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><divclass="content"><header><nav><ahref="../index.html">Up</a>–<ahref="../../index.html">infer</a>»<ahref="../index.html">IBase</a>» Location</nav><h1>Module <code>IBase.Location</code></h1></header><dl><dtclass="spec type"id="type-t"><ahref="#type-t"class="anchor"></a><code><spanclass="keyword">type</span> t</code><code> = </code><code>{</code><tableclass="record"><trid="type-t.line"class="anchored"><tdclass="def field"><ahref="#type-t.line"class="anchor"></a><code>line : int;</code></td><tdclass="doc"><p>The line number. -1 means "do not know"</p></td></tr><trid="type-t.col"class="anchored"><tdclass="def field"><ahref="#type-t.col"class="anchor"></a><code>col : int;</code></td><tdclass="doc"><p>The column number. -1 means "do not know"</p></td></tr><trid="type-t.file"class="anchored"><tdclass="def field"><ahref="#type-t.file"class="anchor"></a><code>file : <ahref="../SourceFile/index.html#type-t">SourceFile.t</a>;</code></td><tdclass="doc"><p>The name of the source file</p></td></tr></table><code>}</code></dt><dd><p>Location in the original source file</p></dd></dl><div><divclass="spec include"><divclass="doc"><dl><dtclass="spec value"id="val-compare"><ahref="#val-compare"class="anchor"></a><code><spanclass="keyword">val</span> compare : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span> int</code></dt></dl></div></div></div><dl><dtclass="spec value"id="val-equal"><ahref="#val-equal"class="anchor"></a><code><spanclass="keyword">val</span> equal : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span> bool</code></dt><dtclass="spec value"id="val-none"><ahref="#val-none"class="anchor"></a><code><spanclass="keyword">val</span> none : <ahref="../SourceFile/index.html#type-t">SourceFile.t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dd><p>Dummy source location for the given file</p></dd></dl><dl><dtclass="spec value"id="val-dummy"><ahref="#val-dummy"class="anchor"></a><code><spanclass="keyword">val</span> dummy : <ahref="index.html#type-t">t</a></code></dt><dd><p>Dummy location with no source file</p></dd></dl><dl><dtclass="spec value"id="val-pp"><ahref="#val-pp"class="anchor"></a><code><spanclass="keyword">val</span> pp : Stdlib.Format.formatter <span>-></span><ahref="index.html#type-t">t</a><span>-></span> unit</code></dt><dd><p>Pretty print a location.</p></dd></dl><dl><dtclass="spec value"id="val-pp_line"><ahref="#val-pp_line"class="anchor"></a><code><spanclass="keyword">val</span> pp_line : Stdlib.Format.formatter <span>-></span><ahref="index.html#type-t">t</a><span>-></span> unit</code></dt><dd><p>print just the line information</p></dd></dl><dl><dtclass="spec value"id="val-to_string"><ahref="#val-to_string"class="anchor"></a><code><spanclass="keyword">val</span> to_string : <ahref="index.html#type-t">t</a><span>-></span> string</code></dt><dd><p>String representation of a location.</p></dd></dl><dl><dtclass="spec value"id="val-pp_file_pos"><ahref="#val-pp_file_pos"class="anchor"></a><code><spanclass="keyword">val</span> pp_file_pos : Stdlib.Format.formatter <span>-></span><ahref="index.html#type-t">t</a><span>-></span> unit</code></dt><dd><p>Pretty print a file-position of a location</p></dd></dl><dl><dtclass="spec value"id="val-pp_range"><ahref="#val-pp_range"class="anchor"></a><code><spanclass="keyword">val</span> pp_range : Stdlib.Format.formatter <span>-></span><span>(<ahref="index.html#type-t">t