| 1780 | |
| 1781 | |
| 1782 | static 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 | |
| 1795 | static void exprstat (LexState *ls) { |
no test coverage detected