MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / funcstat

Function funcstat

deps/lua/src/lparser.c:1212–1221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210
1211
1212static void funcstat (LexState *ls, int line) {
1213 /* funcstat -> FUNCTION funcname body */
1214 int needself;
1215 expdesc v, b;
1216 luaX_next(ls); /* skip FUNCTION */
1217 needself = funcname(ls, &v);
1218 body(ls, &b, needself, line);
1219 luaK_storevar(ls->fs, &v, &b);
1220 luaK_fixline(ls->fs, line); /* definition `happens' in the first line */
1221}
1222
1223
1224static 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