mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Deploying to gh-pages from @ crystal-ameba/ameba@5aac63ea74 🚀
This commit is contained in:
		
							parent
							
								
									4be0551946
								
							
						
					
					
						commit
						f00425a866
					
				
					 147 changed files with 866 additions and 1206 deletions
				
			
		|  | @ -926,7 +926,7 @@ Holds the assign node and the variable.</p> | |||
|   </h2> | ||||
|    | ||||
|      | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L7" target="_blank"> | ||||
|       <a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L7" target="_blank"> | ||||
|         ameba/ast/variabling/assignment.cr | ||||
|       </a> | ||||
|      | ||||
|  | @ -1057,13 +1057,6 @@ Holds the assign node and the variable.</p> | |||
|          | ||||
|       </li> | ||||
|      | ||||
|       <li class="entry-summary"> | ||||
|         <a href="#transformed%3F-instance-method" class="signature"><strong>#transformed?</strong></a> | ||||
|          | ||||
|           <div class="summary"><p><span class="flag orange">TODO</span>  Remove in a next release.</p></div> | ||||
|          | ||||
|       </li> | ||||
|      | ||||
|       <li class="entry-summary"> | ||||
|         <a href="#variable%3AVariable-instance-method" class="signature"><strong>#variable</strong> : Variable</a> | ||||
|          | ||||
|  | @ -1128,7 +1121,7 @@ Holds the assign node and the variable.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L31" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L31" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1163,7 +1156,7 @@ Holds the assign node and the variable.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L17" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L17" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1179,7 +1172,7 @@ Holds the assign node and the variable.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L24" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L24" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1195,7 +1188,7 @@ Holds the assign node and the variable.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L24" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L24" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1218,7 +1211,7 @@ For example, this assignment is in a branch:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L60" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L60" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1234,7 +1227,7 @@ For example, this assignment is in a branch:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L23" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L23" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1250,7 +1243,7 @@ For example, this assignment is in a branch:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L23" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L23" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1271,7 +1264,7 @@ For example, this assignment is in a branch:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L11" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L11" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1294,7 +1287,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L50" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L50" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1310,7 +1303,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L8" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L8" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1326,7 +1319,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L8" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L8" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1342,7 +1335,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L40" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L40" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1363,7 +1356,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L20" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L20" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1384,7 +1377,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L65" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L65" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1400,7 +1393,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L22" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L22" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1416,40 +1409,7 @@ For example, this is an op assign:</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L22" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|    | ||||
|     <div class="entry-detail" id="transformed?-instance-method"> | ||||
|       <div class="signature"> | ||||
|          | ||||
|         def <strong>transformed?</strong> | ||||
| 
 | ||||
|         <a class="method-permalink" href="#transformed%3F-instance-method">#</a> | ||||
|       </div> | ||||
|        | ||||
|         <div class="doc"> | ||||
|            | ||||
|           <p><span class="flag orange">TODO</span>  Remove in a next release. BC for crystal <= 1.9. | ||||
| refs https://github.com/crystal-ameba/ameba/pull/407</p> | ||||
| <p>Indicates whether the node is a transformed assignment by the compiler. | ||||
| i.e.</p> | ||||
| <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 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) | ||||
| <span class="k">end</span></code></pre> | ||||
|         </div> | ||||
|        | ||||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L100" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L22" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  | @ -1470,7 +1430,7 @@ i.e.</p> | |||
|       <br/> | ||||
|       <div> | ||||
|          | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/52a3e47/src/ameba/ast/variabling/assignment.cr#L14" target="_blank">View source</a>] | ||||
|           [<a href="https://github.com/crystal-ameba/ameba/blob/5aac63e/src/ameba/ast/variabling/assignment.cr#L14" target="_blank">View source</a>] | ||||
|          | ||||
|       </div> | ||||
|     </div> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue