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

Function funcstat

lua/lparser.c:1298–1307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1296
1297
1298static void funcstat (LexState *ls, int line) {
1299 /* funcstat -> FUNCTION funcname body */
1300 int needself;
1301 expdesc v, b;
1302 luaX_next(ls); /* skip FUNCTION */
1303 needself = funcname(ls, &v);
1304 body(ls, &b, needself, line);
1305 luaK_storevar(ls->fs, &v, &b);
1306 luaK_fixline(ls->fs, line); /* definition `happens' in the first line */
1307}
1308
1309
1310static void exprstat (LexState *ls) {

Callers 1

statementFunction · 0.85

Calls 5

luaX_nextFunction · 0.85
funcnameFunction · 0.85
bodyFunction · 0.85
luaK_storevarFunction · 0.85
luaK_fixlineFunction · 0.85

Tested by

no test coverage detected