MCPcopy Create free account
hub / github.com/F-Stack/f-stack / localstat

Function localstat

app/redis-6.2.6/deps/lua/src/lparser.c:1183–1199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1181
1182
1183static void localstat (LexState *ls) {
1184 /* stat -> LOCAL NAME {`,' NAME} [`=' explist1] */
1185 int nvars = 0;
1186 int nexps;
1187 expdesc e;
1188 do {
1189 new_localvar(ls, str_checkname(ls), nvars++);
1190 } while (testnext(ls, ','));
1191 if (testnext(ls, '='))
1192 nexps = explist1(ls, &e);
1193 else {
1194 e.k = VVOID;
1195 nexps = 0;
1196 }
1197 adjust_assign(ls, nvars, nexps, &e);
1198 adjustlocalvars(ls, nvars);
1199}
1200
1201
1202static int funcname (LexState *ls, expdesc *v) {

Callers 1

statementFunction · 0.70

Calls 6

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

Tested by

no test coverage detected