| 692 | } |
| 693 | |
| 694 | std::string ParserContext::simple_token_error() const |
| 695 | { |
| 696 | if (_last_error_token.position >= _last_match_token.position || _last_second_error_token.position >= _last_match_token.position) |
| 697 | { |
| 698 | auto error_str = simple_token_error(_last_error_token); |
| 699 | if (_last_second_error_token.position > _last_error_token.position) |
| 700 | error_str += "\n" + simple_token_error(_last_second_error_token, false); |
| 701 | return error_str; |
| 702 | } |
| 703 | else { |
| 704 | return simple_token_error(_last_match_token); |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | std::string ParserContext::simple_token_error(GluaParserToken token, bool with_maybe_errors) const |
| 709 | { |
no test coverage detected