MCPcopy Create free account
hub / github.com/catboost/catboost / Expect

Method Expect

contrib/libs/flatbuffers/src/idl_parser.cpp:743–750  ·  view source on GitHub ↗

Expect a given token to be next, consume it, or error if not present.

Source from the content-addressed store, hash-verified

741
742// Expect a given token to be next, consume it, or error if not present.
743CheckedError Parser::Expect(int t) {
744 if (t != token_) {
745 return Error("expecting: " + TokenToString(t) +
746 " instead got: " + TokenToStringId(token_));
747 }
748 NEXT();
749 return NoError();
750}
751
752CheckedError Parser::ParseNamespacing(std::string *id, std::string *last) {
753 while (Is('.')) {

Callers

nothing calls this directly

Calls 3

TokenToStringFunction · 0.85
NoErrorFunction · 0.85
ErrorFunction · 0.70

Tested by

no test coverage detected