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

Function explist

3rd/lua-5.4.3/src/lparser.c:1000–1010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998
999
1000static int explist (LexState *ls, expdesc *v) {
1001 /* explist -> expr { ',' expr } */
1002 int n = 1; /* at least one expression */
1003 expr(ls, v);
1004 while (testnext(ls, ',')) {
1005 luaK_exp2nextreg(ls->fs, v);
1006 expr(ls, v);
1007 n++;
1008 }
1009 return n;
1010}
1011
1012
1013static void funcargs (LexState *ls, expdesc *f, int line) {

Callers 5

funcargsFunction · 0.85
restassignFunction · 0.85
forlistFunction · 0.85
localstatFunction · 0.85
retstatFunction · 0.85

Calls 3

exprFunction · 0.85
testnextFunction · 0.85
luaK_exp2nextregFunction · 0.85

Tested by

no test coverage detected