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

Function chunk

app/redis-6.2.6/deps/lua/src/lparser.c:1329–1341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1327
1328
1329static void chunk (LexState *ls) {
1330 /* chunk -> { stat [`;'] } */
1331 int islast = 0;
1332 enterlevel(ls);
1333 while (!islast && !block_follow(ls->t.token)) {
1334 islast = statement(ls);
1335 testnext(ls, ';');
1336 lua_assert(ls->fs->f->maxstacksize >= ls->fs->freereg &&
1337 ls->fs->freereg >= ls->fs->nactvar);
1338 ls->fs->freereg = ls->fs->nactvar; /* free registers */
1339 }
1340 leavelevel(ls);
1341}
1342
1343/* }====================================================================== */

Callers 4

luaY_parserFunction · 0.85
bodyFunction · 0.85
blockFunction · 0.85
repeatstatFunction · 0.85

Calls 4

enterlevelFunction · 0.70
block_followFunction · 0.70
statementFunction · 0.70
testnextFunction · 0.70

Tested by

no test coverage detected