parent
2aa46ee4ae
commit
54835a5302
1 changed files with 7 additions and 0 deletions
|
@ -3178,6 +3178,13 @@ void GDScriptParser::_parse_block(BlockNode *p_block, bool p_static) {
|
|||
|
||||
IdentifierNode *id = alloc_node<IdentifierNode>();
|
||||
id->name = tokenizer->get_token_identifier();
|
||||
#ifdef DEBUG_ENABLED
|
||||
for (int j = 0; j < current_class->variables.size(); j++) {
|
||||
if (current_class->variables[j].identifier == id->name) {
|
||||
_add_warning(GDScriptWarning::SHADOWED_VARIABLE, id->line, id->name, itos(current_class->variables[j].line));
|
||||
}
|
||||
}
|
||||
#endif // DEBUG_ENABLED
|
||||
|
||||
tokenizer->advance();
|
||||
|
||||
|
|
Loading…
Reference in a new issue