MCPcopy Create free account
hub / github.com/F-Stack/f-stack / check_match

Function check_match

freebsd/contrib/openzfs/module/lua/lparser.c:124–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122
123
124static void check_match (LexState *ls, int what, int who, int where) {
125 if (!testnext(ls, what)) {
126 if (where == ls->linenumber)
127 error_expected(ls, what);
128 else {
129 luaX_syntaxerror(ls, luaO_pushfstring(ls->L,
130 "%s expected (to close %s at line %d)",
131 luaX_token2str(ls, what), luaX_token2str(ls, who), where));
132 }
133 }
134}
135
136
137static TString *str_checkname (LexState *ls) {

Callers 8

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

Calls 5

testnextFunction · 0.70
error_expectedFunction · 0.70
luaX_syntaxerrorFunction · 0.70
luaO_pushfstringFunction · 0.70
luaX_token2strFunction · 0.70

Tested by

no test coverage detected