MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / Expect

Method Expect

native/thirdpart/flatbuffers/idl_parser.cpp:583–590  ·  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

581
582// Expect a given token to be next, consume it, or error if not present.
583CheckedError Parser::Expect(int t) {
584 if (t != token_) {
585 return Error("expecting: " + TokenToString(t) +
586 " instead got: " + TokenToStringId(token_));
587 }
588 NEXT();
589 return NoError();
590}
591
592CheckedError Parser::ParseNamespacing(std::string *id, std::string *last) {
593 while (Is('.')) {

Callers

nothing calls this directly

Calls 3

ErrorFunction · 0.85
TokenToStringFunction · 0.85
NoErrorFunction · 0.85

Tested by

no test coverage detected