MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / simple_token_error

Method simple_token_error

src/Chain/libraries/glua/lparsercombinator.cpp:694–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Calls 2

sizeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected