This commit is contained in:
d0cd 2024-08-30 14:48:26 +00:00
parent 68d2e9ffae
commit c2ad4e940c
178 changed files with 1487 additions and 1487 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `deserialize` fn in crate `leo_ast`."><title>deserialize in leo_ast::common::imported_modules - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="leo_ast" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.1 (3f5fd8dd4 2024-08-06)" data-channel="1.80.1" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../leo_ast/index.html">leo_ast</a><span class="version">2.1.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In leo_ast::common::imported_modules</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../../index.html">leo_ast</a>::<wbr><a href="../index.html">common</a>::<wbr><a href="index.html">imported_modules</a>::<wbr><a class="fn" href="#">deserialize</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/leo_ast/common/imported_modules.rs.html#42-47">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn deserialize&lt;'de, D: <a class="trait" href="https://docs.rs/serde/1.0.208/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;&gt;(
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `deserialize` fn in crate `leo_ast`."><title>deserialize in leo_ast::common::imported_modules - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="leo_ast" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.1 (3f5fd8dd4 2024-08-06)" data-channel="1.80.1" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../leo_ast/index.html">leo_ast</a><span class="version">2.1.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In leo_ast::common::imported_modules</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../../index.html">leo_ast</a>::<wbr><a href="../index.html">common</a>::<wbr><a href="index.html">imported_modules</a>::<wbr><a class="fn" href="#">deserialize</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/leo_ast/common/imported_modules.rs.html#42-47">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn deserialize&lt;'de, D: <a class="trait" href="https://docs.rs/serde/1.0.209/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;&gt;(
deserializer: D,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.80.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;Symbol&gt;, <a class="struct" href="../../program/struct.Program.html" title="struct leo_ast::program::Program">Program</a>&gt;, D::<a class="associatedtype" href="https://docs.rs/serde/1.0.208/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt;</code></pre></section></div></main></body></html>
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.80.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../leo_span/symbol/struct.Symbol.html" title="struct leo_span::symbol::Symbol">Symbol</a>&gt;, <a class="struct" href="../../program/struct.Program.html" title="struct leo_ast::program::Program">Program</a>&gt;, D::<a class="associatedtype" href="https://docs.rs/serde/1.0.209/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt;</code></pre></section></div></main></body></html>

View File

@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `serialize` fn in crate `leo_ast`."><title>serialize in leo_ast::common::imported_modules - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="leo_ast" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.1 (3f5fd8dd4 2024-08-06)" data-channel="1.80.1" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../leo_ast/index.html">leo_ast</a><span class="version">2.1.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In leo_ast::common::imported_modules</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../../index.html">leo_ast</a>::<wbr><a href="../index.html">common</a>::<wbr><a href="index.html">imported_modules</a>::<wbr><a class="fn" href="#">serialize</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/leo_ast/common/imported_modules.rs.html#25-40">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn serialize&lt;S: <a class="trait" href="https://docs.rs/serde/1.0.208/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>&gt;(
imported_modules: &amp;<a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.80.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;Symbol&gt;, <a class="struct" href="../../program/struct.Program.html" title="struct leo_ast::program::Program">Program</a>&gt;,
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `serialize` fn in crate `leo_ast`."><title>serialize in leo_ast::common::imported_modules - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="leo_ast" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.1 (3f5fd8dd4 2024-08-06)" data-channel="1.80.1" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../leo_ast/index.html">leo_ast</a><span class="version">2.1.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In leo_ast::common::imported_modules</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../../index.html">leo_ast</a>::<wbr><a href="../index.html">common</a>::<wbr><a href="index.html">imported_modules</a>::<wbr><a class="fn" href="#">serialize</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/leo_ast/common/imported_modules.rs.html#25-40">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn serialize&lt;S: <a class="trait" href="https://docs.rs/serde/1.0.209/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>&gt;(
imported_modules: &amp;<a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.80.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../leo_span/symbol/struct.Symbol.html" title="struct leo_span::symbol::Symbol">Symbol</a>&gt;, <a class="struct" href="../../program/struct.Program.html" title="struct leo_ast::program::Program">Program</a>&gt;,
serializer: S,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;S::<a class="associatedtype" href="https://docs.rs/serde/1.0.208/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, S::<a class="associatedtype" href="https://docs.rs/serde/1.0.208/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;</code></pre></section></div></main></body></html>
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;S::<a class="associatedtype" href="https://docs.rs/serde/1.0.209/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, S::<a class="associatedtype" href="https://docs.rs/serde/1.0.209/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;</code></pre></section></div></main></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@
node_builder: <a class="struct" href="../../leo_ast/common/node_builder/struct.NodeBuilder.html" title="struct leo_ast::common::node_builder::NodeBuilder">NodeBuilder</a>,
assigner: <a class="struct" href="../../leo_passes/common/assigner/struct.Assigner.html" title="struct leo_passes::common::assigner::Assigner">Assigner</a>,
type_table: <a class="struct" href="../../leo_passes/common/type_table/struct.TypeTable.html" title="struct leo_passes::common::type_table::TypeTable">TypeTable</a>,
import_stubs: <a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;Symbol, <a class="struct" href="../../leo_ast/stub/struct.Stub.html" title="struct leo_ast::stub::Stub">Stub</a>&gt;,
import_stubs: <a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;<a class="struct" href="../../leo_span/symbol/struct.Symbol.html" title="struct leo_span::symbol::Symbol">Symbol</a>, <a class="struct" href="../../leo_ast/stub/struct.Stub.html" title="struct leo_ast::stub::Stub">Stub</a>&gt;,
phantom: <a class="struct" href="https://doc.rust-lang.org/1.80.1/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;N&gt;,
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The primary entry point of the Leo compiler.</p>
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.handler" class="structfield section-header"><a href="#structfield.handler" class="anchor field">§</a><code>handler: &amp;'a <a class="struct" href="../../leo_errors/emitter/struct.Handler.html" title="struct leo_errors::emitter::Handler">Handler</a></code></span><div class="docblock"><p>The handler is used for error and warning emissions.</p>
@ -22,7 +22,7 @@
</div><span id="structfield.node_builder" class="structfield section-header"><a href="#structfield.node_builder" class="anchor field">§</a><code>node_builder: <a class="struct" href="../../leo_ast/common/node_builder/struct.NodeBuilder.html" title="struct leo_ast::common::node_builder::NodeBuilder">NodeBuilder</a></code></span><div class="docblock"><p>The <code>NodeCounter</code> used to generate sequentially increasing <code>NodeID</code>s.</p>
</div><span id="structfield.assigner" class="structfield section-header"><a href="#structfield.assigner" class="anchor field">§</a><code>assigner: <a class="struct" href="../../leo_passes/common/assigner/struct.Assigner.html" title="struct leo_passes::common::assigner::Assigner">Assigner</a></code></span><div class="docblock"><p>The <code>Assigner</code> is used to construct (unique) assignment statements.</p>
</div><span id="structfield.type_table" class="structfield section-header"><a href="#structfield.type_table" class="anchor field">§</a><code>type_table: <a class="struct" href="../../leo_passes/common/type_table/struct.TypeTable.html" title="struct leo_passes::common::type_table::TypeTable">TypeTable</a></code></span><div class="docblock"><p>The type table.</p>
</div><span id="structfield.import_stubs" class="structfield section-header"><a href="#structfield.import_stubs" class="anchor field">§</a><code>import_stubs: <a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;Symbol, <a class="struct" href="../../leo_ast/stub/struct.Stub.html" title="struct leo_ast::stub::Stub">Stub</a>&gt;</code></span><div class="docblock"><p>The stubs for imported programs. Produced by <code>Retriever</code> module.</p>
</div><span id="structfield.import_stubs" class="structfield section-header"><a href="#structfield.import_stubs" class="anchor field">§</a><code>import_stubs: <a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;<a class="struct" href="../../leo_span/symbol/struct.Symbol.html" title="struct leo_span::symbol::Symbol">Symbol</a>, <a class="struct" href="../../leo_ast/stub/struct.Stub.html" title="struct leo_ast::stub::Stub">Stub</a>&gt;</code></span><div class="docblock"><p>The stubs for imported programs. Produced by <code>Retriever</code> module.</p>
</div><span id="structfield.phantom" class="structfield section-header"><a href="#structfield.phantom" class="anchor field">§</a><code>phantom: <a class="struct" href="https://doc.rust-lang.org/1.80.1/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;N&gt;</code></span><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Compiler%3C'a,+N%3E" class="impl"><a class="src rightside" href="../../src/leo_compiler/compiler.rs.html#65-386">source</a><a href="#impl-Compiler%3C'a,+N%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, N: Network&gt; <a class="struct" href="struct.Compiler.html" title="struct leo_compiler::compiler::Compiler">Compiler</a>&lt;'a, N&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../../src/leo_compiler/compiler.rs.html#67-93">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(
program_name: <a class="struct" href="https://doc.rust-lang.org/1.80.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
network: <a class="struct" href="https://doc.rust-lang.org/1.80.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
@ -30,13 +30,13 @@
main_file_path: <a class="struct" href="https://doc.rust-lang.org/1.80.1/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>,
output_directory: <a class="struct" href="https://doc.rust-lang.org/1.80.1/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>,
compiler_options: <a class="enum" href="https://doc.rust-lang.org/1.80.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../options/struct.CompilerOptions.html" title="struct leo_compiler::options::CompilerOptions">CompilerOptions</a>&gt;,
import_stubs: <a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;Symbol, <a class="struct" href="../../leo_ast/stub/struct.Stub.html" title="struct leo_ast::stub::Stub">Stub</a>&gt;,
import_stubs: <a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;<a class="struct" href="../../leo_span/symbol/struct.Symbol.html" title="struct leo_span::symbol::Symbol">Symbol</a>, <a class="struct" href="../../leo_ast/stub/struct.Stub.html" title="struct leo_ast::stub::Stub">Stub</a>&gt;,
) -&gt; Self</h4></section></summary><div class="docblock"><p>Returns a new Leo compiler.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.checksum" class="method"><a class="src rightside" href="../../src/leo_compiler/compiler.rs.html#96-107">source</a><h4 class="code-header">pub fn <a href="#method.checksum" class="fn">checksum</a>(&amp;self) -&gt; <a class="type" href="../../leo_errors/errors/type.Result.html" title="type leo_errors::errors::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.80.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</h4></section></summary><div class="docblock"><p>Returns a SHA256 checksum of the program file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.parse_program_from_string" class="method"><a class="src rightside" href="../../src/leo_compiler/compiler.rs.html#110-136">source</a><h4 class="code-header">pub fn <a href="#method.parse_program_from_string" class="fn">parse_program_from_string</a>(
&amp;mut self,
program_string: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.1/std/primitive.str.html">str</a>,
name: FileName,
name: <a class="enum" href="../../leo_span/source_map/enum.FileName.html" title="enum leo_span::source_map::FileName">FileName</a>,
) -&gt; <a class="type" href="../../leo_errors/errors/type.Result.html" title="type leo_errors::errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.1/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Parses and stores a program file content from a string, constructs a syntax tree, and generates a program.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.parse_program" class="method"><a class="src rightside" href="../../src/leo_compiler/compiler.rs.html#139-145">source</a><h4 class="code-header">pub fn <a href="#method.parse_program" class="fn">parse_program</a>(&amp;mut self) -&gt; <a class="type" href="../../leo_errors/errors/type.Result.html" title="type leo_errors::errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.1/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Parses and stores the main program file, constructs a syntax tree, and generates a program.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.symbol_table_pass" class="method"><a class="src rightside" href="../../src/leo_compiler/compiler.rs.html#148-154">source</a><h4 class="code-header">pub fn <a href="#method.symbol_table_pass" class="fn">symbol_table_pass</a>(&amp;self) -&gt; <a class="type" href="../../leo_errors/errors/type.Result.html" title="type leo_errors::errors::Result">Result</a>&lt;<a class="struct" href="../struct.SymbolTable.html" title="struct leo_compiler::SymbolTable">SymbolTable</a>&gt;</h4></section></summary><div class="docblock"><p>Runs the symbol table pass.</p>

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@
node_builder: <a class="struct" href="../leo_ast/common/node_builder/struct.NodeBuilder.html" title="struct leo_ast::common::node_builder::NodeBuilder">NodeBuilder</a>,
assigner: <a class="struct" href="../leo_passes/common/assigner/struct.Assigner.html" title="struct leo_passes::common::assigner::Assigner">Assigner</a>,
type_table: <a class="struct" href="../leo_passes/common/type_table/struct.TypeTable.html" title="struct leo_passes::common::type_table::TypeTable">TypeTable</a>,
import_stubs: <a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;Symbol, <a class="struct" href="../leo_ast/stub/struct.Stub.html" title="struct leo_ast::stub::Stub">Stub</a>&gt;,
import_stubs: <a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;<a class="struct" href="../leo_span/symbol/struct.Symbol.html" title="struct leo_span::symbol::Symbol">Symbol</a>, <a class="struct" href="../leo_ast/stub/struct.Stub.html" title="struct leo_ast::stub::Stub">Stub</a>&gt;,
phantom: <a class="struct" href="https://doc.rust-lang.org/1.80.1/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;N&gt;,
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The primary entry point of the Leo compiler.</p>
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.handler" class="structfield section-header"><a href="#structfield.handler" class="anchor field">§</a><code>handler: &amp;'a <a class="struct" href="../leo_errors/emitter/struct.Handler.html" title="struct leo_errors::emitter::Handler">Handler</a></code></span><div class="docblock"><p>The handler is used for error and warning emissions.</p>
@ -22,7 +22,7 @@
</div><span id="structfield.node_builder" class="structfield section-header"><a href="#structfield.node_builder" class="anchor field">§</a><code>node_builder: <a class="struct" href="../leo_ast/common/node_builder/struct.NodeBuilder.html" title="struct leo_ast::common::node_builder::NodeBuilder">NodeBuilder</a></code></span><div class="docblock"><p>The <code>NodeCounter</code> used to generate sequentially increasing <code>NodeID</code>s.</p>
</div><span id="structfield.assigner" class="structfield section-header"><a href="#structfield.assigner" class="anchor field">§</a><code>assigner: <a class="struct" href="../leo_passes/common/assigner/struct.Assigner.html" title="struct leo_passes::common::assigner::Assigner">Assigner</a></code></span><div class="docblock"><p>The <code>Assigner</code> is used to construct (unique) assignment statements.</p>
</div><span id="structfield.type_table" class="structfield section-header"><a href="#structfield.type_table" class="anchor field">§</a><code>type_table: <a class="struct" href="../leo_passes/common/type_table/struct.TypeTable.html" title="struct leo_passes::common::type_table::TypeTable">TypeTable</a></code></span><div class="docblock"><p>The type table.</p>
</div><span id="structfield.import_stubs" class="structfield section-header"><a href="#structfield.import_stubs" class="anchor field">§</a><code>import_stubs: <a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;Symbol, <a class="struct" href="../leo_ast/stub/struct.Stub.html" title="struct leo_ast::stub::Stub">Stub</a>&gt;</code></span><div class="docblock"><p>The stubs for imported programs. Produced by <code>Retriever</code> module.</p>
</div><span id="structfield.import_stubs" class="structfield section-header"><a href="#structfield.import_stubs" class="anchor field">§</a><code>import_stubs: <a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;<a class="struct" href="../leo_span/symbol/struct.Symbol.html" title="struct leo_span::symbol::Symbol">Symbol</a>, <a class="struct" href="../leo_ast/stub/struct.Stub.html" title="struct leo_ast::stub::Stub">Stub</a>&gt;</code></span><div class="docblock"><p>The stubs for imported programs. Produced by <code>Retriever</code> module.</p>
</div><span id="structfield.phantom" class="structfield section-header"><a href="#structfield.phantom" class="anchor field">§</a><code>phantom: <a class="struct" href="https://doc.rust-lang.org/1.80.1/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;N&gt;</code></span><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Compiler%3C'a,+N%3E" class="impl"><a class="src rightside" href="../src/leo_compiler/compiler.rs.html#65-386">source</a><a href="#impl-Compiler%3C'a,+N%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, N: Network&gt; <a class="struct" href="compiler/struct.Compiler.html" title="struct leo_compiler::compiler::Compiler">Compiler</a>&lt;'a, N&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../src/leo_compiler/compiler.rs.html#67-93">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(
program_name: <a class="struct" href="https://doc.rust-lang.org/1.80.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
network: <a class="struct" href="https://doc.rust-lang.org/1.80.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
@ -30,13 +30,13 @@
main_file_path: <a class="struct" href="https://doc.rust-lang.org/1.80.1/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>,
output_directory: <a class="struct" href="https://doc.rust-lang.org/1.80.1/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>,
compiler_options: <a class="enum" href="https://doc.rust-lang.org/1.80.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="options/struct.CompilerOptions.html" title="struct leo_compiler::options::CompilerOptions">CompilerOptions</a>&gt;,
import_stubs: <a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;Symbol, <a class="struct" href="../leo_ast/stub/struct.Stub.html" title="struct leo_ast::stub::Stub">Stub</a>&gt;,
import_stubs: <a class="struct" href="https://docs.rs/indexmap/1/indexmap/map/struct.IndexMap.html" title="struct indexmap::map::IndexMap">IndexMap</a>&lt;<a class="struct" href="../leo_span/symbol/struct.Symbol.html" title="struct leo_span::symbol::Symbol">Symbol</a>, <a class="struct" href="../leo_ast/stub/struct.Stub.html" title="struct leo_ast::stub::Stub">Stub</a>&gt;,
) -&gt; Self</h4></section></summary><div class="docblock"><p>Returns a new Leo compiler.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.checksum" class="method"><a class="src rightside" href="../src/leo_compiler/compiler.rs.html#96-107">source</a><h4 class="code-header">pub fn <a href="#method.checksum" class="fn">checksum</a>(&amp;self) -&gt; <a class="type" href="../leo_errors/errors/type.Result.html" title="type leo_errors::errors::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.80.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</h4></section></summary><div class="docblock"><p>Returns a SHA256 checksum of the program file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.parse_program_from_string" class="method"><a class="src rightside" href="../src/leo_compiler/compiler.rs.html#110-136">source</a><h4 class="code-header">pub fn <a href="#method.parse_program_from_string" class="fn">parse_program_from_string</a>(
&amp;mut self,
program_string: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.1/std/primitive.str.html">str</a>,
name: FileName,
name: <a class="enum" href="../leo_span/source_map/enum.FileName.html" title="enum leo_span::source_map::FileName">FileName</a>,
) -&gt; <a class="type" href="../leo_errors/errors/type.Result.html" title="type leo_errors::errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.1/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Parses and stores a program file content from a string, constructs a syntax tree, and generates a program.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.parse_program" class="method"><a class="src rightside" href="../src/leo_compiler/compiler.rs.html#139-145">source</a><h4 class="code-header">pub fn <a href="#method.parse_program" class="fn">parse_program</a>(&amp;mut self) -&gt; <a class="type" href="../leo_errors/errors/type.Result.html" title="type leo_errors::errors::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.1/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Parses and stores the main program file, constructs a syntax tree, and generates a program.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.symbol_table_pass" class="method"><a class="src rightside" href="../src/leo_compiler/compiler.rs.html#148-154">source</a><h4 class="code-header">pub fn <a href="#method.symbol_table_pass" class="fn">symbol_table_pass</a>(&amp;self) -&gt; <a class="type" href="../leo_errors/errors/type.Result.html" title="type leo_errors::errors::Result">Result</a>&lt;<a class="struct" href="struct.SymbolTable.html" title="struct leo_compiler::SymbolTable">SymbolTable</a>&gt;</h4></section></summary><div class="docblock"><p>Runs the symbol table pass.</p>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More