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

Function localstat

lua/lparser.c:1265–1281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1263
1264
1265static void localstat (LexState *ls) {
1266 /* stat -> LOCAL NAME {`,' NAME} [`=' explist1] */
1267 int nvars = 0;
1268 int nexps;
1269 expdesc e;
1270 do {
1271 new_localvar(ls, str_checkname(ls), nvars++);
1272 } while (testnext(ls, ','));
1273 if (testnext(ls, '='))
1274 nexps = explist1(ls, &e);
1275 else {
1276 e.k = VVOID;
1277 nexps = 0;
1278 }
1279 adjust_assign(ls, nvars, nexps, &e);
1280 adjustlocalvars(ls, nvars);
1281}
1282
1283
1284static 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