mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	 413490c270
			
		
	
	
		413490c270
		
	
	
	
	
		
			
			This fixes a bug in the analyzer where it did not push the SHADOWED_VARIABLE_BASE_CLASS warning for members shadowed by variable in subclass. It does this by comparing the class which contains the shadowed member with the class containing the variable, and pushing SHADOWED_VARIABLE only if the classes are the same. Additionally, SHADOWED_VARIABLE_BASE_CLASS can take an extra symbol which helps to specify the line for non native base class.
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			118 B
		
	
	
	
		
			GDScript
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			118 B
		
	
	
	
		
			GDScript
		
	
	
	
	
	
| class_name ShadowingBase
 | |
| 
 | |
| const base_const_member = 1
 | |
| var base_variable_member
 | |
| 
 | |
| func base_function_member():
 | |
|     pass
 |