MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / funcstat

Function funcstat

third-party/lua-5.4.6/src/lparser.c:1781–1791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

statementFunction · 0.70

Calls 6

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

Tested by

no test coverage detected