MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / parse_identifier

Method parse_identifier

modules/gdscript/gdscript_parser.cpp:2714–2723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2712}
2713
2714GDScriptParser::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
2725GDScriptParser::ExpressionNode *GDScriptParser::parse_identifier(ExpressionNode *p_previous_operand, bool p_can_assign) {
2726 if (!previous.is_identifier()) {

Callers

nothing calls this directly

Calls 8

print_lineFunction · 0.85
is_identifierMethod · 0.80
has_localMethod · 0.80
has_featureMethod · 0.45
spoof_checkMethod · 0.45
StringMethod · 0.45
get_identifierMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected