<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>Tenv (infer.IR.Tenv)</title><linkrel="stylesheet"href="../../../odoc.css"/><metacharset="utf-8"/><metaname="generator"content="odoc 1.5.1"/><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">IR</a>» Tenv</nav><h1>Module <code>IR.Tenv</code></h1></header><aside><p>Module for Type Environments.</p></aside><dl><dtclass="spec type"id="type-t"><ahref="#type-t"class="anchor"></a><code><spanclass="keyword">type</span> t</code></dt><dd><p>Type for type environment.</p></dd></dl><dl><dtclass="spec value"id="val-create"><ahref="#val-create"class="anchor"></a><code><spanclass="keyword">val</span> create : unit <span>-></span><ahref="index.html#type-t">t</a></code></dt><dd><p>Create a new type environment.</p></dd></dl><dl><dtclass="spec value"id="val-load"><ahref="#val-load"class="anchor"></a><code><spanclass="keyword">val</span> load : <ahref="../../IBase/SourceFile/index.html#type-t">IBase.SourceFile.t</a><span>-></span><span><ahref="index.html#type-t">t</a> option</span></code></dt><dd><p>Load a type environment for a source file</p></dd></dl><dl><dtclass="spec value"id="val-store_debug_file_for_source"><ahref="#val-store_debug_file_for_source"class="anchor"></a><code><spanclass="keyword">val</span> store_debug_file_for_source : <ahref="../../IBase/SourceFile/index.html#type-t">IBase.SourceFile.t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span> unit</code></dt><dtclass="spec value"id="val-read"><ahref="#val-read"class="anchor"></a><code><spanclass="keyword">val</span> read : <ahref="../../IBase/DB/index.html#type-filename">IBase.DB.filename</a><span>-></span><span><ahref="index.html#type-t">t</a> option</span></code></dt><dd><p>read and return a type environment from the given file</p></dd></dl><dl><dtclass="spec value"id="val-load_global"><ahref="#val-load_global"class="anchor"></a><code><spanclass="keyword">val</span> load_global : unit <span>-></span><span><ahref="index.html#type-t">t</a> option</span></code></dt><dd><p>load the global type environment (Java)</p></dd></dl><dl><dtclass="spec value"id="val-store_global"><ahref="#val-store_global"class="anchor"></a><code><spanclass="keyword">val</span> store_global : <ahref="index.html#type-t">t</a><span>-></span> unit</code></dt><dd><p>save a global type environment (Java)</p></dd></dl><dl><dtclass="spec value"id="val-lookup"><ahref="#val-lookup"class="anchor"></a><code><spanclass="keyword">val</span> lookup : <ahref="index.html#type-t">t</a><span>-></span><ahref="../Typ/Name/index.html#type-t">Typ.Name.t</a><span>-></span><span><ahref="../Struct/index.html#type-t">Struct.t</a> option</span></code></dt><dd><p>Look up a name in the global type environment.</p></dd></dl><dl><dtclass="spec value"id="val-mk_struct"><ahref="#val-mk_struct"class="anchor"></a><code><spanclass="keyword">val</span> mk_struct : <ahref="index.html#type-t">t</a><span>-></span><span>?⁠default:<ahref="../Struct/index.html#type-t">Struct.t</a></span><span>-></span><span>?⁠fields:<ahref="../Struct/index.html#type-fields">Struct.fields</a></span><span>-></span><span>?⁠statics:<ahref="../Struct/index.html#type-fields">Struct.fields</a></span><span>-></span><span>?⁠methods:<span><ahref="../Procname/index.html#type-t">Procname.t</a> list</span></span><span>-></span><span>?⁠exported_objc_methods:<span><ahref="../Procname/index.html#type-t">Procname.t</a> list</span></span><span>-></span><span>?⁠supers:<span><ahref="../Typ/Name/index.html#type-t">Typ.Name.t</a> list</span></span><span>-></span><span>?⁠annots:<ahref="../Annot/