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

Method check

modules/gdscript/gdscript_parser.cpp:510–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510bool GDScriptParser::check(GDScriptTokenizer::Token::Type p_token_type) const {
511 if (p_token_type == GDScriptTokenizer::Token::IDENTIFIER) {
512 return current.is_identifier();
513 }
514 return current.type == p_token_type;
515}
516
517bool GDScriptParser::consume(GDScriptTokenizer::Token::Type p_token_type, const String &p_error_message) {
518 if (match(p_token_type)) {

Callers

nothing calls this directly

Calls 1

is_identifierMethod · 0.80

Tested by

no test coverage detected