MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / check_match

Function check_match

lua/lparser.c:105–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104
105static void check_match (LexState *ls, int what, int who, int where) {
106 if (!testnext(ls, what)) {
107 if (where == ls->linenumber)
108 error_expected(ls, what);
109 else {
110 luaX_syntaxerror(ls, luaO_pushfstring(ls->L,
111 LUA_QS " expected (to close " LUA_QS " at line %d)",
112 luaX_token2str(ls, what), luaX_token2str(ls, who), where));
113 }
114 }
115}
116
117
118static TString *str_checkname (LexState *ls) {

Callers 8

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

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