You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Merge pull request #55625 from cdemirer/fix-type-guessing-and-gdscript-parser-printing
Fix `--test gdscript-parser` crash
This commit is contained in:
@@ -4236,7 +4236,11 @@ void GDScriptParser::TreePrinter::print_get_node(GetNodeNode *p_get_node) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GDScriptParser::TreePrinter::print_identifier(IdentifierNode *p_identifier) {
|
void GDScriptParser::TreePrinter::print_identifier(IdentifierNode *p_identifier) {
|
||||||
push_text(p_identifier->name);
|
if (p_identifier != nullptr) {
|
||||||
|
push_text(p_identifier->name);
|
||||||
|
} else {
|
||||||
|
push_text("<invalid identifier>");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GDScriptParser::TreePrinter::print_if(IfNode *p_if, bool p_is_elif) {
|
void GDScriptParser::TreePrinter::print_if(IfNode *p_if, bool p_is_elif) {
|
||||||
|
|||||||
Reference in New Issue
Block a user