MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / CheckAndNext

Method CheckAndNext

LuaParser/src/Parse/LuaParser.cpp:1034–1041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1032}
1033
1034void LuaParser::CheckAndNext(LuaTokenKind kind) {
1035 if (Current() != kind) {
1036 LuaExpectedError(util::format("token type {} expected", kind), kind);
1037 return;
1038 }
1039
1040 Next();
1041}
1042
1043bool LuaParser::TestAndNext(LuaTokenKind kind) {
1044 if (Current() == kind) {

Callers

nothing calls this directly

Calls 1

formatFunction · 0.50

Tested by

no test coverage detected