MCPcopy Create free account
hub / github.com/DFHack/dfhack / funcstat

Function funcstat

depends/lua/src/lparser.c:1477–1486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1475
1476
1477static void funcstat (LexState *ls, int line) {
1478 /* funcstat -> FUNCTION funcname body */
1479 int ismethod;
1480 expdesc v, b;
1481 luaX_next(ls); /* skip FUNCTION */
1482 ismethod = funcname(ls, &v);
1483 body(ls, &b, ismethod, line);
1484 luaK_storevar(ls->fs, &v, &b);
1485 luaK_fixline(ls->fs, line); /* definition "happens" in the first line */
1486}
1487
1488
1489static 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