MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / funcstat

Function funcstat

3rd/lua-5.4.3/src/lparser.c:1772–1781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1770
1771
1772static void funcstat (LexState *ls, int line) {
1773 /* funcstat -> FUNCTION funcname body */
1774 int ismethod;
1775 expdesc v, b;
1776 luaX_next(ls); /* skip FUNCTION */
1777 ismethod = funcname(ls, &v);
1778 body(ls, &b, ismethod, line);
1779 luaK_storevar(ls->fs, &v, &b);
1780 luaK_fixline(ls->fs, line); /* definition "happens" in the first line */
1781}
1782
1783
1784static 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