| 1032 | } |
| 1033 | |
| 1034 | void 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 | |
| 1043 | bool LuaParser::TestAndNext(LuaTokenKind kind) { |
| 1044 | if (Current() == kind) { |