| 1984 | |
| 1985 | |
| 1986 | static void funcstat (LexState *ls, int line) { |
| 1987 | /* funcstat -> FUNCTION funcname body */ |
| 1988 | int ismethod; |
| 1989 | expdesc v, b; |
| 1990 | luaX_next(ls); /* skip FUNCTION */ |
| 1991 | ismethod = funcname(ls, &v); |
| 1992 | check_readonly(ls, &v); |
| 1993 | body(ls, &b, ismethod, line); |
| 1994 | luaK_storevar(ls->fs, &v, &b); |
| 1995 | luaK_fixline(ls->fs, line); /* definition "happens" in the first line */ |
| 1996 | } |
| 1997 | |
| 1998 | |
| 1999 | static void exprstat (LexState *ls) { |
no test coverage detected