mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Deploying to gh-pages from @ crystal-ameba/ameba@8f5d2cca6e 🚀
This commit is contained in:
parent
85133a5be9
commit
d0c68e8677
129 changed files with 2601 additions and 752 deletions
|
|
@ -136,6 +136,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/AST/TypeDecVariable" data-name="ameba::ast::typedecvariable">
|
||||
<a href="../../Ameba/AST/TypeDecVariable.html">TypeDecVariable</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/AST/Util" data-name="ameba::ast::util">
|
||||
<a href="../../Ameba/AST/Util.html">Util</a>
|
||||
|
||||
|
|
@ -800,7 +805,7 @@ This is where the local variables belong to.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L6" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L6" target="_blank">
|
||||
ameba/ast/scope.cr
|
||||
</a>
|
||||
|
||||
|
|
@ -865,6 +870,13 @@ This is where the local variables belong to.</p>
|
|||
|
||||
</li>
|
||||
|
||||
<li class="entry-summary">
|
||||
<a href="#add_type_dec_variable%28node%29-instance-method" class="signature"><strong>#add_type_dec_variable</strong>(node)</a>
|
||||
|
||||
<div class="summary"><p>Adds a new type declaration variable to the current scope.</p></div>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="entry-summary">
|
||||
<a href="#add_variable%28node%29-instance-method" class="signature"><strong>#add_variable</strong>(node)</a>
|
||||
|
||||
|
|
@ -900,6 +912,13 @@ This is where the local variables belong to.</p>
|
|||
|
||||
</li>
|
||||
|
||||
<li class="entry-summary">
|
||||
<a href="#assigns_type_dec%3F%28name%29-instance-method" class="signature"><strong>#assigns_type_dec?</strong>(name)</a>
|
||||
|
||||
<div class="summary"><p>Returns <code>true</code> if type declaration variable is assigned in this scope.</p></div>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="entry-summary">
|
||||
<a href="#block%3F-instance-method" class="signature"><strong>#block?</strong></a>
|
||||
|
||||
|
|
@ -1028,6 +1047,13 @@ This is where the local variables belong to.</p>
|
|||
|
||||
</li>
|
||||
|
||||
<li class="entry-summary">
|
||||
<a href="#type_dec_variables%3AArray%28Ameba%3A%3AAST%3A%3ATypeDecVariable%29-instance-method" class="signature"><strong>#type_dec_variables</strong> : Array(Ameba::AST::TypeDecVariable)</a>
|
||||
|
||||
<div class="summary"><p>Link to the type declaration variables used in current scope</p></div>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="entry-summary">
|
||||
<a href="#type_definition%3F-instance-method" class="signature"><strong>#type_definition?</strong></a>
|
||||
|
||||
|
|
@ -1113,7 +1139,7 @@ This is where the local variables belong to.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L42" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L45" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1173,7 +1199,7 @@ scope.add_argument(arg_node)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L62" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L65" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1196,7 +1222,30 @@ scope.add_ivariable(ivar_node)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L73" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L76" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="entry-detail" id="add_type_dec_variable(node)-instance-method">
|
||||
<div class="signature">
|
||||
|
||||
def <strong>add_type_dec_variable</strong>(node)
|
||||
|
||||
<a class="method-permalink" href="#add_type_dec_variable%28node%29-instance-method">#</a>
|
||||
</div>
|
||||
|
||||
<div class="doc">
|
||||
|
||||
<p>Adds a new type declaration variable to the current scope.</p>
|
||||
<pre><code class="language-crystal">scope <span class="o">=</span> <span class="t">Scope</span>.new(class_node, <span class="n">nil</span>)
|
||||
scope.add_type_dec_variable(node)</code></pre>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L86" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1219,7 +1268,7 @@ scope.add_variable(var_node)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L52" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L55" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1240,7 +1289,7 @@ scope.add_variable(var_node)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L168" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L186" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1261,7 +1310,7 @@ scope.add_variable(var_node)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L17" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L17" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1284,7 +1333,7 @@ scope.assign_variable(var_name, assign_node)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L93" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L106" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1305,7 +1354,28 @@ scope.assign_variable(var_name, assign_node)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L124" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L137" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="entry-detail" id="assigns_type_dec?(name)-instance-method">
|
||||
<div class="signature">
|
||||
|
||||
def <strong>assigns_type_dec?</strong>(name)
|
||||
|
||||
<a class="method-permalink" href="#assigns_type_dec%3F%28name%29-instance-method">#</a>
|
||||
</div>
|
||||
|
||||
<div class="doc">
|
||||
|
||||
<p>Returns <code>true</code> if type declaration variable is assigned in this scope.</p>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L143" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1327,7 +1397,7 @@ scope.assign_variable(var_name, assign_node)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L99" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L112" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1348,7 +1418,7 @@ scope.assign_variable(var_name, assign_node)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L158" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L176" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1364,7 +1434,7 @@ scope.assign_variable(var_name, assign_node)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L33" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L36" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1380,7 +1450,7 @@ scope.assign_variable(var_name, assign_node)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L33" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L36" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1402,7 +1472,7 @@ the same Crystal node as <code>@node</code>.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L187" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L205" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1425,7 +1495,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L83" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L96" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1469,7 +1539,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L118" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L131" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1490,7 +1560,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L26" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L29" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1511,7 +1581,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L20" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L20" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1527,7 +1597,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L32" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L35" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1543,7 +1613,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L32" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L35" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1564,7 +1634,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L29" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L32" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1585,7 +1655,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L23" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L26" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1606,7 +1676,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L14" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L14" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1628,7 +1698,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L142" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L160" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1652,7 +1722,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L110" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L123" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1668,7 +1738,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L31" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L34" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1684,7 +1754,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L31" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L34" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1705,7 +1775,28 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L163" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L181" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="entry-detail" id="type_dec_variables:Array(Ameba::AST::TypeDecVariable)-instance-method">
|
||||
<div class="signature">
|
||||
|
||||
def <strong>type_dec_variables</strong> : Array(<a href="../../Ameba/AST/TypeDecVariable.html">Ameba::AST::TypeDecVariable</a>)
|
||||
|
||||
<a class="method-permalink" href="#type_dec_variables%3AArray%28Ameba%3A%3AAST%3A%3ATypeDecVariable%29-instance-method">#</a>
|
||||
</div>
|
||||
|
||||
<div class="doc">
|
||||
|
||||
<p>Link to the type declaration variables used in current scope</p>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L23" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1727,7 +1818,7 @@ type definition, for example a class.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L131" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L149" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1748,7 +1839,7 @@ type definition, for example a class.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L11" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L11" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1769,7 +1860,7 @@ type definition, for example a class.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L8" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L8" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1791,7 +1882,7 @@ type definition, for example a class.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/de5c6ad/src/ameba/ast/scope.cr#L151" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/8f5d2cc/src/ameba/ast/scope.cr#L169" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue