mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Use Var#special_var? to check if var is special
This commit is contained in:
		
							parent
							
								
									6475c2bb25
								
							
						
					
					
						commit
						cc71511080
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -29,7 +29,7 @@ module Ameba::AST
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Returns true if it is a special variable, i.e `$?`.
 | 
					    # Returns true if it is a special variable, i.e `$?`.
 | 
				
			||||||
    def special?
 | 
					    def special?
 | 
				
			||||||
      name =~ /^\$/
 | 
					      @node.special_var?
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Assigns the variable (creates a new assignment).
 | 
					    # Assigns the variable (creates a new assignment).
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue