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  @ 51b0a07e81 🚀
				
					
				
			This commit is contained in:
		
							parent
							
								
									2f03204df2
								
							
						
					
					
						commit
						8d0a0f7c6a
					
				
					 93 changed files with 1813 additions and 1813 deletions
				
			
		|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::Argument - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -579,7 +579,7 @@ Holds the reference to the variable, thus to scope.</p> | |||
| 
 | ||||
| <p>For example, all these vars are arguments:</p> | ||||
| 
 | ||||
| <pre><code><span class="k">def</span> <span class="m">method</span>(a, b, c <span class="o">=</span> <span class="n">10</span>, <span class="o">&</span>block) | ||||
| <pre><code class="language-crystal"><span class="k">def</span> <span class="m">method</span>(a, b, c <span class="o">=</span> <span class="n">10</span>, <span class="o">&</span>block) | ||||
|   <span class="n">3</span>.times <span class="k">do</span> <span class="o">|</span>i<span class="o">|</span> | ||||
|   <span class="k">end</span> | ||||
| 
 | ||||
|  | @ -609,7 +609,7 @@ Holds the reference to the variable, thus to scope.</p> | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/argument.cr#L15" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/argument.cr#L15" target="_blank"> | ||||
|         ameba/ast/variabling/argument.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -763,13 +763,13 @@ Holds the reference to the variable, thus to scope.</p> | |||
|            | ||||
|           <p>Creates a new argument.</p> | ||||
| 
 | ||||
| <pre><code><span class="t">Argument</span>.<span class="k">new</span>(node, variable)</code></pre> | ||||
| <pre><code class="language-crystal"><span class="t">Argument</span>.<span class="k">new</span>(node, variable)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/argument.cr#L31" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/argument.cr#L31" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -799,7 +799,7 @@ Holds the reference to the variable, thus to scope.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/argument.cr#L23" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/argument.cr#L23" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -815,7 +815,7 @@ Holds the reference to the variable, thus to scope.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/argument.cr#L23" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/argument.cr#L23" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -836,7 +836,7 @@ Holds the reference to the variable, thus to scope.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/argument.cr#L35" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/argument.cr#L35" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -852,7 +852,7 @@ Holds the reference to the variable, thus to scope.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/argument.cr#L22" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/argument.cr#L22" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -868,7 +868,7 @@ Holds the reference to the variable, thus to scope.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/argument.cr#L22" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/argument.cr#L22" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -889,7 +889,7 @@ Holds the reference to the variable, thus to scope.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/argument.cr#L40" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/argument.cr#L40" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -910,7 +910,7 @@ Holds the reference to the variable, thus to scope.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/argument.cr#L17" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/argument.cr#L17" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -926,7 +926,7 @@ Holds the reference to the variable, thus to scope.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/argument.cr#L24" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/argument.cr#L24" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -942,7 +942,7 @@ Holds the reference to the variable, thus to scope.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/argument.cr#L24" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/argument.cr#L24" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -963,7 +963,7 @@ Holds the reference to the variable, thus to scope.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/argument.cr#L20" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/argument.cr#L20" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::Assignment - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -600,7 +600,7 @@ Holds the assign node and the variable.</p> | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L7" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L7" target="_blank"> | ||||
|         ameba/ast/variabling/assignment.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -797,13 +797,13 @@ Holds the assign node and the variable.</p> | |||
|            | ||||
|           <p>Creates a new assignment.</p> | ||||
| 
 | ||||
| <pre><code><span class="t">Assignment</span>.<span class="k">new</span>(node, variable, scope)</code></pre> | ||||
| <pre><code class="language-crystal"><span class="t">Assignment</span>.<span class="k">new</span>(node, variable, scope)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L32" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L32" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -838,7 +838,7 @@ Holds the assign node and the variable.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L17" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L17" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -854,7 +854,7 @@ Holds the assign node and the variable.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L24" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L24" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -870,7 +870,7 @@ Holds the assign node and the variable.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L24" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L24" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -888,13 +888,13 @@ Holds the assign node and the variable.</p> | |||
|           <p>Returns true if this assignment is in a branch, false if not. | ||||
| For example, this assignment is in a branch:</p> | ||||
| 
 | ||||
| <pre><code>a <span class="o">=</span> <span class="n">1</span> <span class="k">if</span> a.<span class="k">nil?</span></code></pre> | ||||
| <pre><code class="language-crystal">a <span class="o">=</span> <span class="n">1</span> <span class="k">if</span> a.<span class="k">nil?</span></code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L61" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L61" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -910,7 +910,7 @@ For example, this assignment is in a branch:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L23" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L23" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -926,7 +926,7 @@ For example, this assignment is in a branch:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L23" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L23" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -947,7 +947,7 @@ For example, this assignment is in a branch:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L11" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L11" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -965,13 +965,13 @@ For example, this assignment is in a branch:</p> | |||
|           <p>Returns true if this assignment is an op assign, false if not. | ||||
| For example, this is an op assign:</p> | ||||
| 
 | ||||
| <pre><code>a ||= <span class="n">1</span></code></pre> | ||||
| <pre><code class="language-crystal">a ||= <span class="n">1</span></code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L51" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L51" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -987,7 +987,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L8" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L8" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1003,7 +1003,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L8" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L8" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1019,7 +1019,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L41" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L41" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1040,7 +1040,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L20" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L20" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1061,7 +1061,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L66" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L66" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1077,7 +1077,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L22" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L22" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1093,7 +1093,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L22" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L22" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1111,13 +1111,13 @@ For example, this is an op assign:</p> | |||
|           <p>Indicates whether the node is a transformed assignment by the compiler. | ||||
| i.e.</p> | ||||
| 
 | ||||
| <pre><code>collection.each <span class="k">do</span> <span class="o">|</span>(a, b)<span class="o">|</span> | ||||
| <pre><code class="language-crystal">collection.each <span class="k">do</span> <span class="o">|</span>(a, b)<span class="o">|</span> | ||||
|   puts b | ||||
| <span class="k">end</span></code></pre> | ||||
| 
 | ||||
| <p>is transformed to:</p> | ||||
| 
 | ||||
| <pre><code>collection.each <span class="k">do</span> <span class="o">|</span>__arg0<span class="o">|</span> | ||||
| <pre><code class="language-crystal">collection.each <span class="k">do</span> <span class="o">|</span>__arg0<span class="o">|</span> | ||||
|   a <span class="o">=</span> __arg0[<span class="n">0</span>] | ||||
|   b <span class="o">=</span> __arg0[<span class="n">1</span>] | ||||
|   puts(b) | ||||
|  | @ -1127,7 +1127,7 @@ i.e.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L99" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L99" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1148,7 +1148,7 @@ i.e.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/assignment.cr#L14" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/assignment.cr#L14" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::BaseVisitor - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -617,7 +617,7 @@ | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/base_visitor.cr#L6" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/base_visitor.cr#L6" target="_blank"> | ||||
|         ameba/ast/visitors/base_visitor.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -730,13 +730,13 @@ | |||
|            | ||||
|           <p>Creates instance of this visitor.</p> | ||||
| 
 | ||||
| <pre><code>visitor <span class="o">=</span> <span class="t">Ameba</span><span class="t">::</span><span class="t">AST</span><span class="t">::</span><span class="t">NodeVisitor</span>.<span class="k">new</span>(rule, source)</code></pre> | ||||
| <pre><code class="language-crystal">visitor <span class="o">=</span> <span class="t">Ameba</span><span class="t">::</span><span class="t">AST</span><span class="t">::</span><span class="t">NodeVisitor</span>.<span class="k">new</span>(rule, source)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/base_visitor.cr#L19" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/base_visitor.cr#L19" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -772,7 +772,7 @@ Returns true meaning all child nodes will be traversed.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/base_visitor.cr#L25" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/base_visitor.cr#L25" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::Branch - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -578,7 +578,7 @@ | |||
| Branch is a part of a branchable statement. | ||||
| For example, the branchable if statement contains 3 branches:</p> | ||||
| 
 | ||||
| <pre><code><span class="k">if</span> a <span class="o">=</span> something <span class="c"># --> Branch A</span> | ||||
| <pre><code class="language-crystal"><span class="k">if</span> a <span class="o">=</span> something <span class="c"># --> Branch A</span> | ||||
|   a <span class="o">=</span> <span class="n">1</span>          <span class="c"># --> Branch B</span> | ||||
|   put a <span class="k">if</span> <span class="k">out</span>   <span class="c"># --> Branch C</span> | ||||
| <span class="k">else</span> | ||||
|  | @ -608,7 +608,7 @@ For example, the branchable if statement contains 3 branches:</p> | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branch.cr#L15" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branch.cr#L15" target="_blank"> | ||||
|         ameba/ast/branch.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -795,13 +795,13 @@ For example, the branchable if statement contains 3 branches:</p> | |||
|            | ||||
|           <p>Creates a new branch.</p> | ||||
| 
 | ||||
| <pre><code><span class="t">Branch</span>.<span class="k">new</span>(if_node)</code></pre> | ||||
| <pre><code class="language-crystal"><span class="t">Branch</span>.<span class="k">new</span>(if_node)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branch.cr#L33" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branch.cr#L33" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -830,13 +830,13 @@ For example, the branchable if statement contains 3 branches:</p> | |||
|            | ||||
|           <p>Constructs a new branch based on the node some parent scope.</p> | ||||
| 
 | ||||
| <pre><code><span class="t">Branch</span>.<span class="k">of</span>(assign_node, def_node)</code></pre> | ||||
| <pre><code class="language-crystal"><span class="t">Branch</span>.<span class="k">of</span>(assign_node, def_node)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branch.cr#L66" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branch.cr#L66" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -853,13 +853,13 @@ For example, the branchable if statement contains 3 branches:</p> | |||
|            | ||||
|           <p>Constructs a new branch based on the node in scope.</p> | ||||
| 
 | ||||
| <pre><code><span class="t">Branch</span>.<span class="k">of</span>(assign_node, scope)</code></pre> | ||||
| <pre><code class="language-crystal"><span class="t">Branch</span>.<span class="k">of</span>(assign_node, scope)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branch.cr#L57" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branch.cr#L57" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -910,7 +910,7 @@ For example, the branchable if statement contains 3 branches:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branch.cr#L24" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branch.cr#L24" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -926,7 +926,7 @@ For example, the branchable if statement contains 3 branches:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branch.cr#L24" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branch.cr#L24" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -967,7 +967,7 @@ For example, the branchable if statement contains 3 branches:</p> | |||
|           <p>Returns true if current branch is in a loop, false - otherwise. | ||||
| For example, this branch is in a loop:</p> | ||||
| 
 | ||||
| <pre><code><span class="k">while</span> <span class="n">true</span> | ||||
| <pre><code class="language-crystal"><span class="k">while</span> <span class="n">true</span> | ||||
|   handle_input <span class="c"># this branch is in a loop</span> | ||||
|   <span class="k">if</span> wrong_input | ||||
|     show_message <span class="c"># this branch is also in a loop.</span> | ||||
|  | @ -978,7 +978,7 @@ For example, this branch is in a loop:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branch.cr#L48" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branch.cr#L48" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -994,7 +994,7 @@ For example, this branch is in a loop:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branch.cr#L23" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branch.cr#L23" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1010,7 +1010,7 @@ For example, this branch is in a loop:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branch.cr#L23" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branch.cr#L23" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1031,7 +1031,7 @@ For example, this branch is in a loop:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branch.cr#L17" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branch.cr#L17" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1052,7 +1052,7 @@ For example, this branch is in a loop:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branch.cr#L20" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branch.cr#L20" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1068,7 +1068,7 @@ For example, this branch is in a loop:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branch.cr#L22" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branch.cr#L22" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1084,7 +1084,7 @@ For example, this branch is in a loop:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branch.cr#L22" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branch.cr#L22" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::Branchable - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -578,7 +578,7 @@ | |||
| For example, <code>Crystal::If</code>, <code>Crystal::Unless</code>, <code>Crystal::While</code> | ||||
| are branchables.</p> | ||||
| 
 | ||||
| <pre><code>white a <span class="o">></span> <span class="n">100</span> <span class="c"># Branchable A</span> | ||||
| <pre><code class="language-crystal">white a <span class="o">></span> <span class="n">100</span> <span class="c"># Branchable A</span> | ||||
|   <span class="k">if</span> b <span class="o">></span> <span class="n">2</span>    <span class="c"># Branchable B</span> | ||||
|     a += <span class="n">1</span> | ||||
|   <span class="k">end</span> | ||||
|  | @ -621,7 +621,7 @@ are branchables.</p> | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branchable.cr#L15" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branchable.cr#L15" target="_blank"> | ||||
|         ameba/ast/branchable.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -827,13 +827,13 @@ are branchables.</p> | |||
|            | ||||
|           <p>Creates a new branchable</p> | ||||
| 
 | ||||
| <pre><code><span class="t">Branchable</span>.<span class="k">new</span>(node, parent_branchable)</code></pre> | ||||
| <pre><code class="language-crystal"><span class="t">Branchable</span>.<span class="k">new</span>(node, parent_branchable)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branchable.cr#L35" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branchable.cr#L35" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -863,7 +863,7 @@ are branchables.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branchable.cr#L18" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branchable.cr#L18" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -879,7 +879,7 @@ are branchables.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branchable.cr#L28" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branchable.cr#L28" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -895,7 +895,7 @@ are branchables.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branchable.cr#L28" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branchable.cr#L28" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -911,7 +911,7 @@ are branchables.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branchable.cr#L27" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branchable.cr#L27" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -927,7 +927,7 @@ are branchables.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branchable.cr#L27" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branchable.cr#L27" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -948,7 +948,7 @@ are branchables.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branchable.cr#L39" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branchable.cr#L39" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -969,7 +969,7 @@ are branchables.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branchable.cr#L21" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branchable.cr#L21" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -990,7 +990,7 @@ are branchables.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branchable.cr#L24" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branchable.cr#L24" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1006,7 +1006,7 @@ are branchables.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branchable.cr#L26" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branchable.cr#L26" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1022,7 +1022,7 @@ are branchables.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/branchable.cr#L26" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/branchable.cr#L26" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::CountingVisitor - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -599,7 +599,7 @@ | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/counting_visitor.cr#L3" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/counting_visitor.cr#L3" target="_blank"> | ||||
|         ameba/ast/visitors/counting_visitor.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -745,7 +745,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/counting_visitor.cr#L8" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/counting_visitor.cr#L8" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -780,7 +780,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/counting_visitor.cr#L18" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/counting_visitor.cr#L18" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -796,7 +796,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/counting_visitor.cr#L5" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/counting_visitor.cr#L5" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -812,7 +812,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/counting_visitor.cr#L33" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/counting_visitor.cr#L33" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::FlowExpression - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -577,7 +577,7 @@ | |||
|   <p>Represents a flow expression in Crystal code. | ||||
| For example,</p> | ||||
| 
 | ||||
| <pre><code><span class="k">def</span> <span class="m">foobar</span> | ||||
| <pre><code class="language-crystal"><span class="k">def</span> <span class="m">foobar</span> | ||||
|   a <span class="o">=</span> <span class="n">3</span> | ||||
|   <span class="k">return</span> <span class="n">42</span> <span class="c"># => flow expression</span> | ||||
|   a <span class="o">+</span> <span class="n">1</span> | ||||
|  | @ -624,7 +624,7 @@ a parent node, which allows easily search through the related statement | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/flow_expression.cr#L18" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/flow_expression.cr#L18" target="_blank"> | ||||
|         ameba/ast/flow_expression.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -825,13 +825,13 @@ a parent node, which allows easily search through the related statement | |||
|            | ||||
|           <p>Creates a new flow expression.</p> | ||||
| 
 | ||||
| <pre><code><span class="t">FlowExpression</span>.<span class="k">new</span>(node, parent_node)</code></pre> | ||||
| <pre><code class="language-crystal"><span class="t">FlowExpression</span>.<span class="k">new</span>(node, parent_node)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/flow_expression.cr#L36" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/flow_expression.cr#L36" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -861,7 +861,7 @@ a parent node, which allows easily search through the related statement | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/flow_expression.cr#L29" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/flow_expression.cr#L29" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -877,7 +877,7 @@ a parent node, which allows easily search through the related statement | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/flow_expression.cr#L29" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/flow_expression.cr#L29" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -898,7 +898,7 @@ a parent node, which allows easily search through the related statement | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/flow_expression.cr#L22" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/flow_expression.cr#L22" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -914,7 +914,7 @@ a parent node, which allows easily search through the related statement | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/flow_expression.cr#L28" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/flow_expression.cr#L28" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -930,7 +930,7 @@ a parent node, which allows easily search through the related statement | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/flow_expression.cr#L28" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/flow_expression.cr#L28" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -951,7 +951,7 @@ a parent node, which allows easily search through the related statement | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/flow_expression.cr#L25" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/flow_expression.cr#L25" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -967,7 +967,7 @@ a parent node, which allows easily search through the related statement | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/flow_expression.cr#L27" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/flow_expression.cr#L27" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -983,7 +983,7 @@ a parent node, which allows easily search through the related statement | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/flow_expression.cr#L27" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/flow_expression.cr#L27" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1001,7 +1001,7 @@ a parent node, which allows easily search through the related statement | |||
|           <p>Returns nodes which can't be reached because of a flow command inside. | ||||
| For example:</p> | ||||
| 
 | ||||
| <pre><code><span class="k">def</span> <span class="m">foobar</span> | ||||
| <pre><code class="language-crystal"><span class="k">def</span> <span class="m">foobar</span> | ||||
|   a <span class="o">=</span> <span class="n">1</span> | ||||
|   <span class="k">return</span> <span class="n">42</span> | ||||
| 
 | ||||
|  | @ -1012,7 +1012,7 @@ For example:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/flow_expression.cr#L50" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/flow_expression.cr#L50" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::FlowExpressionVisitor - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -613,7 +613,7 @@ | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/flow_expression_visitor.cr#L6" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/flow_expression_visitor.cr#L6" target="_blank"> | ||||
|         ameba/ast/visitors/flow_expression_visitor.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -793,7 +793,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/flow_expression_visitor.cr#L12" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/flow_expression_visitor.cr#L12" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::InstanceVariable - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -588,7 +588,7 @@ | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/ivariable.cr#L2" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/ivariable.cr#L2" target="_blank"> | ||||
|         ameba/ast/variabling/ivariable.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -726,7 +726,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/ivariable.cr#L10" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/ivariable.cr#L10" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -756,7 +756,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/ivariable.cr#L6" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/ivariable.cr#L6" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -772,7 +772,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/ivariable.cr#L6" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/ivariable.cr#L6" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -788,7 +788,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/ivariable.cr#L5" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/ivariable.cr#L5" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -804,7 +804,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/ivariable.cr#L5" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/ivariable.cr#L5" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -820,7 +820,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/ivariable.cr#L7" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/ivariable.cr#L7" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -836,7 +836,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/ivariable.cr#L7" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/ivariable.cr#L7" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -852,7 +852,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/ivariable.cr#L3" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/ivariable.cr#L3" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -868,7 +868,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/ivariable.cr#L8" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/ivariable.cr#L8" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -884,7 +884,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/ivariable.cr#L8" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/ivariable.cr#L8" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::NodeVisitor - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -577,7 +577,7 @@ | |||
|   <p>An AST Visitor that traverses the source and allows all nodes | ||||
| to be inspected by rules.</p> | ||||
| 
 | ||||
| <pre><code>visitor <span class="o">=</span> <span class="t">Ameba</span><span class="t">::</span><span class="t">AST</span><span class="t">::</span><span class="t">NodeVisitor</span>.<span class="k">new</span>(rule, source)</code></pre> | ||||
| <pre><code class="language-crystal">visitor <span class="o">=</span> <span class="t">Ameba</span><span class="t">::</span><span class="t">AST</span><span class="t">::</span><span class="t">NodeVisitor</span>.<span class="k">new</span>(rule, source)</code></pre> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | @ -602,7 +602,7 @@ to be inspected by rules.</p> | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L39" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L39" target="_blank"> | ||||
|         ameba/ast/visitors/node_visitor.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -906,7 +906,7 @@ to be inspected by rules.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L42" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L42" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -942,7 +942,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -964,7 +964,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -986,7 +986,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1008,7 +1008,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1030,7 +1030,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1052,7 +1052,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1074,7 +1074,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1096,7 +1096,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1118,7 +1118,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1140,7 +1140,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1162,7 +1162,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1184,7 +1184,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1206,7 +1206,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1228,7 +1228,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1250,7 +1250,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1272,7 +1272,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1294,7 +1294,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1316,7 +1316,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1338,7 +1338,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1360,7 +1360,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1382,7 +1382,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1404,7 +1404,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1426,7 +1426,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1448,7 +1448,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L47" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1464,7 +1464,7 @@ Returns true meaning that child nodes will be traversed as well.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/node_visitor.cr#L56" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/node_visitor.cr#L56" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::RedundantControlExpressionVisitor - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -601,7 +601,7 @@ is reached.</p> | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/redundant_control_expression_visitor.cr#L5" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/redundant_control_expression_visitor.cr#L5" target="_blank"> | ||||
|         ameba/ast/visitors/redundant_control_expression_visitor.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -715,7 +715,7 @@ is reached.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/redundant_control_expression_visitor.cr#L15" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/redundant_control_expression_visitor.cr#L15" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -750,7 +750,7 @@ is reached.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/redundant_control_expression_visitor.cr#L13" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/redundant_control_expression_visitor.cr#L13" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -771,7 +771,7 @@ is reached.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/redundant_control_expression_visitor.cr#L7" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/redundant_control_expression_visitor.cr#L7" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -792,7 +792,7 @@ is reached.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/redundant_control_expression_visitor.cr#L10" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/redundant_control_expression_visitor.cr#L10" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::Reference - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -601,7 +601,7 @@ the variable from its reference.</p> | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/reference.cr#L7" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/reference.cr#L7" target="_blank"> | ||||
|         ameba/ast/variabling/reference.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -814,7 +814,7 @@ the variable from its reference.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/reference.cr#L8" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/reference.cr#L8" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -830,7 +830,7 @@ the variable from its reference.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/reference.cr#L8" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/reference.cr#L8" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::Scope - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -600,7 +600,7 @@ This is where the local variables belong to.</p> | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L6" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L6" target="_blank"> | ||||
|         ameba/ast/scope.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -798,7 +798,7 @@ This is where the local variables belong to.</p> | |||
|       </li> | ||||
|      | ||||
|       <li class="entry-summary"> | ||||
|         <a href="#references?(variable:Variable)-instance-method" class="signature"><strong>#references?</strong>(variable : Variable)</a> | ||||
|         <a href="#references?(variable:Variable,check_inner_scopes=true)-instance-method" class="signature"><strong>#references?</strong>(variable : Variable, check_inner_scopes = <span class="n">true</span>)</a> | ||||
|          | ||||
|           <div class="summary"><p>Returns true if current scope (or any of inner scopes) references variable, false if not.</p></div> | ||||
|          | ||||
|  | @ -894,13 +894,13 @@ This is where the local variables belong to.</p> | |||
|            | ||||
|           <p>Creates a new scope. Accepts the AST node and the outer scope.</p> | ||||
| 
 | ||||
| <pre><code>scope <span class="o">=</span> <span class="t">Scope</span>.<span class="k">new</span>(class_node, <span class="n">nil</span>)</code></pre> | ||||
| <pre><code class="language-crystal">scope <span class="o">=</span> <span class="t">Scope</span>.<span class="k">new</span>(class_node, <span class="n">nil</span>)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L39" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L39" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -954,14 +954,14 @@ This is where the local variables belong to.</p> | |||
|            | ||||
|           <p>Creates a new argument in the current scope.</p> | ||||
| 
 | ||||
| <pre><code>scope <span class="o">=</span> <span class="t">Scope</span>.<span class="k">new</span>(class_node, <span class="n">nil</span>) | ||||
| <pre><code class="language-crystal">scope <span class="o">=</span> <span class="t">Scope</span>.<span class="k">new</span>(class_node, <span class="n">nil</span>) | ||||
| scope.add_argument(arg_node)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L59" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L59" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -978,14 +978,14 @@ scope.add_argument(arg_node)</code></pre> | |||
|            | ||||
|           <p>Adds a new instance variable to the current scope.</p> | ||||
| 
 | ||||
| <pre><code>scope <span class="o">=</span> <span class="t">Scope</span>.<span class="k">new</span>(class_node, <span class="n">nil</span>) | ||||
| <pre><code class="language-crystal">scope <span class="o">=</span> <span class="t">Scope</span>.<span class="k">new</span>(class_node, <span class="n">nil</span>) | ||||
| scope.add_ivariable(ivar_node)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L70" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L70" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1002,14 +1002,14 @@ scope.add_ivariable(ivar_node)</code></pre> | |||
|            | ||||
|           <p>Creates a new variable in the current scope.</p> | ||||
| 
 | ||||
| <pre><code>scope <span class="o">=</span> <span class="t">Scope</span>.<span class="k">new</span>(class_node, <span class="n">nil</span>) | ||||
| <pre><code class="language-crystal">scope <span class="o">=</span> <span class="t">Scope</span>.<span class="k">new</span>(class_node, <span class="n">nil</span>) | ||||
| scope.add_variable(var_node)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L49" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L49" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1030,7 +1030,7 @@ scope.add_variable(var_node)</code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L155" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L155" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1051,7 +1051,7 @@ scope.add_variable(var_node)</code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L14" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L14" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1068,14 +1068,14 @@ scope.add_variable(var_node)</code></pre> | |||
|            | ||||
|           <p>Creates a new assignment for the variable.</p> | ||||
| 
 | ||||
| <pre><code>scope <span class="o">=</span> <span class="t">Scope</span>.<span class="k">new</span>(class_node, <span class="n">nil</span>) | ||||
| <pre><code class="language-crystal">scope <span class="o">=</span> <span class="t">Scope</span>.<span class="k">new</span>(class_node, <span class="n">nil</span>) | ||||
| scope.assign_variable(var_name, assign_node)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L90" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L90" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1096,7 +1096,7 @@ scope.assign_variable(var_name, assign_node)</code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L119" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L119" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1118,7 +1118,7 @@ false if not.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L96" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L96" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1139,7 +1139,7 @@ false if not.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L145" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L145" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1155,7 +1155,7 @@ false if not.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L30" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L30" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1171,7 +1171,7 @@ false if not.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L30" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L30" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1193,7 +1193,7 @@ the same Crystal node as <code>@node</code>.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L174" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L174" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1210,14 +1210,14 @@ the same Crystal node as <code>@node</code>.</p> | |||
|            | ||||
|           <p>Returns variable by its name or nil if it does not exist.</p> | ||||
| 
 | ||||
| <pre><code>scope <span class="o">=</span> <span class="t">Scope</span>.<span class="k">new</span>(class_node, <span class="n">nil</span>) | ||||
| <pre><code class="language-crystal">scope <span class="o">=</span> <span class="t">Scope</span>.<span class="k">new</span>(class_node, <span class="n">nil</span>) | ||||
| scope.find_variable(<span class="s">"foo"</span>)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L80" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L80" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1261,7 +1261,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L114" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L114" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1282,7 +1282,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L23" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L23" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1303,7 +1303,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L17" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L17" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1319,7 +1319,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L29" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L29" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1335,7 +1335,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L29" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L29" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1356,7 +1356,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L26" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L26" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1377,7 +1377,7 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L20" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L20" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1398,17 +1398,17 @@ scope.find_variable(<span class="s">"foo"</span>)</code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L11" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L11" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|    | ||||
|     <div class="entry-detail" id="references?(variable:Variable)-instance-method"> | ||||
|     <div class="entry-detail" id="references?(variable:Variable,check_inner_scopes=true)-instance-method"> | ||||
|       <div class="signature"> | ||||
|          | ||||
|         def <strong>references?</strong>(variable : <a href="../../Ameba/AST/Variable.html">Variable</a>) | ||||
|         def <strong>references?</strong>(variable : <a href="../../Ameba/AST/Variable.html">Variable</a>, check_inner_scopes = <span class="n">true</span>) | ||||
| 
 | ||||
|         <a class="method-permalink" href="#references?(variable:Variable)-instance-method">#</a> | ||||
|         <a class="method-permalink" href="#references?(variable:Variable,check_inner_scopes=true)-instance-method">#</a> | ||||
|       </div> | ||||
|        | ||||
|         <div class="doc"> | ||||
|  | @ -1420,7 +1420,7 @@ false if not.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L137" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L137" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1437,7 +1437,7 @@ false if not.</p> | |||
|            | ||||
|           <p>Returns true if current scope represents a spawn block, e. g.</p> | ||||
| 
 | ||||
| <pre><code>spawn <span class="k">do</span> | ||||
| <pre><code class="language-crystal">spawn <span class="k">do</span> | ||||
|   <span class="c"># ...</span> | ||||
| <span class="k">end</span></code></pre> | ||||
|         </div> | ||||
|  | @ -1445,7 +1445,7 @@ false if not.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L107" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L107" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1461,7 +1461,7 @@ false if not.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L28" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L28" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1477,7 +1477,7 @@ false if not.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L28" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L28" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1498,7 +1498,7 @@ false if not.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L150" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L150" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1520,7 +1520,7 @@ type definition, for example a class.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L126" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L126" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1541,7 +1541,7 @@ type definition, for example a class.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/scope.cr#L8" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/scope.cr#L8" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::ScopeVisitor - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -599,7 +599,7 @@ | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/scope_visitor.cr#L5" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/scope_visitor.cr#L5" target="_blank"> | ||||
|         ameba/ast/visitors/scope_visitor.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -742,7 +742,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/visitors/scope_visitor.cr#L13" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/visitors/scope_visitor.cr#L13" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::Util - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -629,7 +629,7 @@ | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/util.cr#L2" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/util.cr#L2" target="_blank"> | ||||
|         ameba/ast/util.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -750,7 +750,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/util.cr#L141" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/util.cr#L141" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -771,7 +771,7 @@ | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/util.cr#L135" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/util.cr#L135" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -794,7 +794,7 @@ or special call node that interrupts execution (i.e. raise, exit, abort).</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/util.cr#L62" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/util.cr#L62" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -815,7 +815,7 @@ Node represents a flow expression if it is full-filled by a flow command.</p> | |||
| <p>For example, this node is a flow expression, because each branch contains | ||||
| a flow command <code>return</code>:</p> | ||||
| 
 | ||||
| <pre><code><span class="k">if</span> a <span class="o">></span> <span class="n">0</span> | ||||
| <pre><code class="language-crystal"><span class="k">if</span> a <span class="o">></span> <span class="n">0</span> | ||||
|   <span class="k">return</span> <span class="n">:positive</span> | ||||
| <span class="k">elsif</span> a <span class="o"><</span> <span class="n">0</span> | ||||
|   <span class="k">return</span> <span class="n">:negative</span> | ||||
|  | @ -825,7 +825,7 @@ a flow command <code>return</code>:</p> | |||
| 
 | ||||
| <p>This node is a not a flow expression:</p> | ||||
| 
 | ||||
| <pre><code><span class="k">if</span> a <span class="o">></span> <span class="n">0</span> | ||||
| <pre><code class="language-crystal"><span class="k">if</span> a <span class="o">></span> <span class="n">0</span> | ||||
|   <span class="k">return</span> <span class="n">:positive</span> | ||||
| <span class="k">end</span></code></pre> | ||||
| 
 | ||||
|  | @ -835,7 +835,7 @@ a flow command <code>return</code>:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/util.cr#L101" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/util.cr#L101" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -856,7 +856,7 @@ a flow command <code>return</code>:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/util.cr#L4" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/util.cr#L4" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -877,7 +877,7 @@ a flow command <code>return</code>:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/util.cr#L147" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/util.cr#L147" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -900,7 +900,7 @@ to determine and cut a piece of source of the node.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/util.cr#L33" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/util.cr#L33" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -921,7 +921,7 @@ to determine and cut a piece of source of the node.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/util.cr#L129" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/util.cr#L129" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -3,21 +3,16 @@ | |||
| <head> | ||||
|   <meta charset="utf-8" /> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
| <meta name="generator" content="Crystal Docs 0.34.0"> | ||||
| <meta name="generator" content="Crystal Docs 0.35.1"> | ||||
| <meta name="crystal_docs.project_version" content="master"> | ||||
| <meta name="crystal_docs.project_name" content="ameba"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link href="../../css/style.css" rel="stylesheet" type="text/css" /> | ||||
| <script type="text/javascript" src="../../js/doc.js"></script> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| 
 | ||||
|   <meta id="repository-name" content="ameba"> | ||||
|   <meta name="repository-name" content="ameba"> | ||||
|   <title>Ameba::AST::Variable - ameba master</title> | ||||
|   <script type="text/javascript"> | ||||
|     CrystalDocs.base_path = "../../"; | ||||
|  | @ -25,6 +20,11 @@ | |||
| </head> | ||||
| <body> | ||||
| 
 | ||||
| <svg class="hidden"> | ||||
|   <symbol id="octicon-link" viewBox="0 0 16 16"> | ||||
|     <path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path> | ||||
|   </symbol> | ||||
| </svg> | ||||
| <div class="sidebar"> | ||||
|   <div class="sidebar-header"> | ||||
|     <div class="search-box"> | ||||
|  | @ -44,7 +44,7 @@ | |||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
|   <div class="search-results" class="hidden"> | ||||
|   <div class="search-results hidden"> | ||||
|     <ul class="search-list"></ul> | ||||
|   </div> | ||||
| 
 | ||||
|  | @ -614,7 +614,7 @@ Holds the var node and variable assigments.</p> | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L4" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L4" target="_blank"> | ||||
|         ameba/ast/variabling/variable.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -862,13 +862,13 @@ Holds the var node and variable assigments.</p> | |||
|            | ||||
|           <p>Creates a new variable(in the scope).</p> | ||||
| 
 | ||||
| <pre><code><span class="t">Variable</span>.<span class="k">new</span>(node, scope)</code></pre> | ||||
| <pre><code class="language-crystal"><span class="t">Variable</span>.<span class="k">new</span>(node, scope)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L31" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L31" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -900,7 +900,7 @@ Holds the var node and variable assigments.</p> | |||
|           <p>Assigns the variable (creates a new assignment). | ||||
| Variable may have multiple assignments.</p> | ||||
| 
 | ||||
| <pre><code>variable <span class="o">=</span> <span class="t">Variable</span>.<span class="k">new</span>(node, scope) | ||||
| <pre><code class="language-crystal">variable <span class="o">=</span> <span class="t">Variable</span>.<span class="k">new</span>(node, scope) | ||||
| variable.assign(node1) | ||||
| variable.assign(node2) | ||||
| variable.assignment.size <span class="c"># => 2</span></code></pre> | ||||
|  | @ -909,7 +909,7 @@ variable.assignment.size <span class="c"># => 2</span></code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L49" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L49" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -930,7 +930,7 @@ variable.assignment.size <span class="c"># => 2</span></code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L18" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L18" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -951,7 +951,7 @@ variable.assignment.size <span class="c"># => 2</span></code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L6" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L6" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -970,19 +970,19 @@ variable.assignment.size <span class="c"># => 2</span></code></pre> | |||
| in the block. For example this variable is captured | ||||
| by block:</p> | ||||
| 
 | ||||
| <pre><code>a <span class="o">=</span> <span class="n">1</span> | ||||
| <pre><code class="language-crystal">a <span class="o">=</span> <span class="n">1</span> | ||||
| <span class="n">3</span>.times { <span class="o">|</span>i<span class="o">|</span> a <span class="o">=</span> a <span class="o">+</span> i }</code></pre> | ||||
| 
 | ||||
| <p>And this variable is not captured by block.</p> | ||||
| 
 | ||||
| <pre><code>i <span class="o">=</span> <span class="n">1</span> | ||||
| <pre><code class="language-crystal">i <span class="o">=</span> <span class="n">1</span> | ||||
| <span class="n">3</span>.times { <span class="o">|</span>i<span class="o">|</span> i <span class="o">+</span> <span class="n">1</span> }</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L114" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L114" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1003,7 +1003,7 @@ by block:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L161" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L161" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1019,7 +1019,7 @@ by block:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L21" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L21" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1035,7 +1035,7 @@ by block:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L21" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L21" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1057,7 +1057,7 @@ the same Crystal node as <code>@node</code>.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L154" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L154" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1078,7 +1078,7 @@ the same Crystal node as <code>@node</code>.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L148" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L148" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1094,7 +1094,7 @@ the same Crystal node as <code>@node</code>.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L20" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L20" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1110,7 +1110,7 @@ the same Crystal node as <code>@node</code>.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L20" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L20" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1126,7 +1126,7 @@ the same Crystal node as <code>@node</code>.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L22" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L22" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1142,7 +1142,7 @@ the same Crystal node as <code>@node</code>.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L22" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L22" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1163,7 +1163,7 @@ the same Crystal node as <code>@node</code>.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L12" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L12" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1180,14 +1180,14 @@ the same Crystal node as <code>@node</code>.</p> | |||
|            | ||||
|           <p>Creates a reference to this variable in some scope.</p> | ||||
| 
 | ||||
| <pre><code>variable <span class="o">=</span> <span class="t">Variable</span>.<span class="k">new</span>(node, scope) | ||||
| <pre><code class="language-crystal">variable <span class="o">=</span> <span class="t">Variable</span>.<span class="k">new</span>(node, scope) | ||||
| variable.reference(var_node, some_scope)</code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L73" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L73" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1204,7 +1204,7 @@ variable.reference(var_node, some_scope)</code></pre> | |||
|            | ||||
|           <p>Reference variable's assignments.</p> | ||||
| 
 | ||||
| <pre><code>variable <span class="o">=</span> <span class="t">Variable</span>.<span class="k">new</span>(node, scope) | ||||
| <pre><code class="language-crystal">variable <span class="o">=</span> <span class="t">Variable</span>.<span class="k">new</span>(node, scope) | ||||
| variable.assign(assign_node) | ||||
| variable.reference_assignments!</code></pre> | ||||
|         </div> | ||||
|  | @ -1212,7 +1212,7 @@ variable.reference_assignments!</code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L87" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L87" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1229,7 +1229,7 @@ variable.reference_assignments!</code></pre> | |||
|            | ||||
|           <p>Returns true if variable has any reference.</p> | ||||
| 
 | ||||
| <pre><code>variable <span class="o">=</span> <span class="t">Variable</span>.<span class="k">new</span>(node, scope) | ||||
| <pre><code class="language-crystal">variable <span class="o">=</span> <span class="t">Variable</span>.<span class="k">new</span>(node, scope) | ||||
| variable.reference(var_node) | ||||
| variable.referenced? <span class="c"># => true</span></code></pre> | ||||
|         </div> | ||||
|  | @ -1237,7 +1237,7 @@ variable.referenced? <span class="c"># => true</span></code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L62" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L62" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1258,7 +1258,7 @@ variable.referenced? <span class="c"># => true</span></code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L9" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L9" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1279,7 +1279,7 @@ variable.referenced? <span class="c"># => true</span></code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L15" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L15" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1300,7 +1300,7 @@ variable.referenced? <span class="c"># => true</span></code></pre> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L35" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L35" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1322,7 +1322,7 @@ false otherwise.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L136" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L136" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1338,7 +1338,7 @@ false otherwise.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L23" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L23" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1354,7 +1354,7 @@ false otherwise.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L23" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L23" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1376,7 +1376,7 @@ false if not.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/d28f9f75/src/ameba/ast/variabling/variable.cr#L125" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/51b0a07e/src/ameba/ast/variabling/variable.cr#L125" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue