GDScript: Check get_node() shorthand in static functions

This commit is contained in:
Danil Alexeev 2023-06-22 12:19:14 +03:00
parent 11ea4dc466
commit 0f27c4ad80
No known key found for this signature in database
GPG key ID: 124453E157DA8DC7
5 changed files with 26 additions and 10 deletions

View file

@ -3035,10 +3035,8 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_get_node(ExpressionNode *p
if (previous.type == GDScriptTokenizer::Token::DOLLAR) {
// Detect initial slash, which will be handled in the loop if it matches.
match(GDScriptTokenizer::Token::SLASH);
#ifdef DEBUG_ENABLED
} else {
get_node->use_dollar = false;
#endif
}
int context_argument = 0;