MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / check_match

Function check_match

Source/Misc/lua/src/lua.c:7680–7690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7678
7679
7680static void check_match (LexState *ls, int what, int who, int where) {
7681if (!testnext(ls, what)) {
7682if (where == ls->linenumber)
7683error_expected(ls, what);
7684else {
7685luaX_syntaxerror(ls, luaO_pushfstring(ls->L,
7686LUA_QS " expected (to close " LUA_QS " at line %d)",
7687luaX_token2str(ls, what), luaX_token2str(ls, who), where));
7688}
7689}
7690}
7691
7692
7693static TString *str_checkname (LexState *ls) {

Callers 8

constructorFunction · 0.70
bodyFunction · 0.70
funcargsFunction · 0.70
prefixexpFunction · 0.70
whilestatFunction · 0.70
repeatstatFunction · 0.70
ifstatFunction · 0.70
statementFunction · 0.70

Calls 5

testnextFunction · 0.85
error_expectedFunction · 0.85
luaX_syntaxerrorFunction · 0.85
luaO_pushfstringFunction · 0.85
luaX_token2strFunction · 0.85

Tested by

no test coverage detected