| 2712 | } |
| 2713 | |
| 2714 | GDScriptParser::IdentifierNode *GDScriptParser::parse_identifier() { |
| 2715 | IdentifierNode *identifier = static_cast<IdentifierNode *>(parse_identifier(nullptr, false)); |
| 2716 | #ifdef DEBUG_ENABLED |
| 2717 | // Check for spoofing here (if available in TextServer) since this isn't called inside expressions. This is only relevant for declarations. |
| 2718 | if (identifier && TS->has_feature(TextServer::FEATURE_UNICODE_SECURITY) && TS->spoof_check(identifier->name)) { |
| 2719 | push_warning(identifier, GDScriptWarning::CONFUSABLE_IDENTIFIER, identifier->name.operator String()); |
| 2720 | } |
| 2721 | #endif |
| 2722 | return identifier; |
| 2723 | } |
| 2724 | |
| 2725 | GDScriptParser::ExpressionNode *GDScriptParser::parse_identifier(ExpressionNode *p_previous_operand, bool p_can_assign) { |
| 2726 | if (!previous.is_identifier()) { |
nothing calls this directly
no test coverage detected