MCPcopy Create free account
hub / github.com/SOUI2/soui / recoverFromError

Method recoverFromError

third-part/jsoncpp/src/lib_json/json_reader.cpp:762–773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760}
761
762bool Reader::recoverFromError(TokenType skipUntilToken) {
763 size_t const errorCount = errors_.size();
764 Token skip;
765 for (;;) {
766 if (!readToken(skip))
767 errors_.resize(errorCount); // discard errors caused by recovery
768 if (skip.type_ == skipUntilToken || skip.type_ == tokenEndOfStream)
769 break;
770 }
771 errors_.resize(errorCount);
772 return false;
773}
774
775bool Reader::addErrorAndRecover(const JSONCPP_STRING& message,
776 Token& token,

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected