MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / chunk

Function chunk

Source/Misc/lua/src/lua.c:8901–8913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8899
8900
8901static void chunk (LexState *ls) {
8902/* chunk -> { stat [`;'] } */
8903int islast = 0;
8904enterlevel(ls);
8905while (!islast && !block_follow(ls->t.token)) {
8906islast = statement(ls);
8907testnext(ls, ';');
8908lua_assert(ls->fs->f->maxstacksize >= ls->fs->freereg &&
8909ls->fs->freereg >= ls->fs->nactvar);
8910ls->fs->freereg = ls->fs->nactvar; /* free registers */
8911}
8912leavelevel(ls);
8913}
8914
8915/* }====================================================================== */
8916/*

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