MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / funcstat

Function funcstat

lib/lua/src/lparser.c:1782–1792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1780
1781
1782static void funcstat (LexState *ls, int line) {
1783 /* funcstat -> FUNCTION funcname body */
1784 int ismethod;
1785 expdesc v, b;
1786 luaX_next(ls); /* skip FUNCTION */
1787 ismethod = funcname(ls, &v);
1788 body(ls, &b, ismethod, line);
1789 check_readonly(ls, &v);
1790 luaK_storevar(ls->fs, &v, &b);
1791 luaK_fixline(ls->fs, line); /* definition "happens" in the first line */
1792}
1793
1794
1795static void exprstat (LexState *ls) {

Callers 1

statementFunction · 0.85

Calls 6

luaX_nextFunction · 0.85
funcnameFunction · 0.85
check_readonlyFunction · 0.85
luaK_storevarFunction · 0.85
luaK_fixlineFunction · 0.85
bodyFunction · 0.70

Tested by

no test coverage detected