MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / localstat

Function localstat

third-party/lua-5.2.4/src/lparser.c:1434–1451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1432
1433
1434static void localstat (LexState *ls) {
1435 /* stat -> LOCAL NAME {`,' NAME} [`=' explist] */
1436 int nvars = 0;
1437 int nexps;
1438 expdesc e;
1439 do {
1440 new_localvar(ls, str_checkname(ls));
1441 nvars++;
1442 } while (testnext(ls, ','));
1443 if (testnext(ls, '='))
1444 nexps = explist(ls, &e);
1445 else {
1446 e.k = VVOID;
1447 nexps = 0;
1448 }
1449 adjust_assign(ls, nvars, nexps, &e);
1450 adjustlocalvars(ls, nvars);
1451}
1452
1453
1454static int funcname (LexState *ls, expdesc *v) {

Callers 1

statementFunction · 0.70

Calls 6

new_localvarFunction · 0.70
str_checknameFunction · 0.70
testnextFunction · 0.70
explistFunction · 0.70
adjust_assignFunction · 0.70
adjustlocalvarsFunction · 0.70

Tested by

no test coverage detected