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

Function chunk

lua/lparser.c:1416–1428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1414
1415
1416static void chunk (LexState *ls) {
1417 /* chunk -> { stat [`;'] } */
1418 int islast = 0;
1419 enterlevel(ls);
1420 while (!islast && !block_follow(ls->t.token)) {
1421 islast = statement(ls);
1422 testnext(ls, ';');
1423 lua_assert(ls->fs->f->maxstacksize >= ls->fs->freereg &&
1424 ls->fs->freereg >= ls->fs->nactvar);
1425 ls->fs->freereg = ls->fs->nactvar; /* free registers */
1426 }
1427 leavelevel(ls);
1428}
1429
1430/* }====================================================================== */

Callers 4

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

Calls 4

enterlevelFunction · 0.85
block_followFunction · 0.85
statementFunction · 0.85
testnextFunction · 0.85

Tested by

no test coverage detected