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

Function localstat

third-party/lua-5.3.5/src/lparser.c:1442–1459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1440
1441
1442static void localstat (LexState *ls) {
1443 /* stat -> LOCAL NAME {',' NAME} ['=' explist] */
1444 int nvars = 0;
1445 int nexps;
1446 expdesc e;
1447 do {
1448 new_localvar(ls, str_checkname(ls));
1449 nvars++;
1450 } while (testnext(ls, ','));
1451 if (testnext(ls, '='))
1452 nexps = explist(ls, &e);
1453 else {
1454 e.k = VVOID;
1455 nexps = 0;
1456 }
1457 adjust_assign(ls, nvars, nexps, &e);
1458 adjustlocalvars(ls, nvars);
1459}
1460
1461
1462static 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