mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	GDScript: Report property type errors
Inline getters & setters are now FunctionNodes. Their names are set in the parser, not in the compiler. GDScript-Analyzer will now run through getter and setter. Also report wrong type or signature errors regarding getset properties. Added GDScript tests for getters and setters. #53102
This commit is contained in:
		
							parent
							
								
									58aa020a19
								
							
						
					
					
						commit
						551ceb590b
					
				
					 17 changed files with 291 additions and 106 deletions
				
			
		|  | @ -165,7 +165,7 @@ void ExtendGDScriptParser::parse_class_symbol(const GDScriptParser::ClassNode *p | |||
| 			case ClassNode::Member::VARIABLE: { | ||||
| 				lsp::DocumentSymbol symbol; | ||||
| 				symbol.name = m.variable->identifier->name; | ||||
| 				symbol.kind = m.variable->property == VariableNode::PropertyStyle::PROP_NONE ? lsp::SymbolKind::Variable : lsp::SymbolKind::Property; | ||||
| 				symbol.kind = m.variable->property == VariableNode::PROP_NONE ? lsp::SymbolKind::Variable : lsp::SymbolKind::Property; | ||||
| 				symbol.deprecated = false; | ||||
| 				symbol.range.start.line = LINE_NUMBER_TO_INDEX(m.variable->start_line); | ||||
| 				symbol.range.start.character = LINE_NUMBER_TO_INDEX(m.variable->start_column); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 ZuBsPaCe
						ZuBsPaCe