| 508 | } |
| 509 | |
| 510 | bool 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 | |
| 517 | bool GDScriptParser::consume(GDScriptTokenizer::Token::Type p_token_type, const String &p_error_message) { |
| 518 | if (match(p_token_type)) { |
nothing calls this directly
no test coverage detected