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

Function localstat

Source/Misc/lua/src/lua.c:8755–8771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8753
8754
8755static void localstat (LexState *ls) {
8756/* stat -> LOCAL NAME {`,' NAME} [`=' explist1] */
8757int nvars = 0;
8758int nexps;
8759expdesc e;
8760do {
8761new_localvar(ls, str_checkname(ls), nvars++);
8762} while (testnext(ls, ','));
8763if (testnext(ls, '='))
8764nexps = explist1(ls, &e);
8765else {
8766e.k = VVOID;
8767nexps = 0;
8768}
8769adjust_assign(ls, nvars, nexps, &e);
8770adjustlocalvars(ls, nvars);
8771}
8772
8773
8774static int funcname (LexState *ls, expdesc *v) {

Callers 1

statementFunction · 0.85

Calls 6

new_localvarFunction · 0.85
str_checknameFunction · 0.85
testnextFunction · 0.85
explist1Function · 0.85
adjust_assignFunction · 0.85
adjustlocalvarsFunction · 0.85

Tested by

no test coverage detected