| 1475 | |
| 1476 | |
| 1477 | static void funcstat (LexState *ls, int line) { |
| 1478 | /* funcstat -> FUNCTION funcname body */ |
| 1479 | int ismethod; |
| 1480 | expdesc v, b; |
| 1481 | luaX_next(ls); /* skip FUNCTION */ |
| 1482 | ismethod = funcname(ls, &v); |
| 1483 | body(ls, &b, ismethod, line); |
| 1484 | luaK_storevar(ls->fs, &v, &b); |
| 1485 | luaK_fixline(ls->fs, line); /* definition "happens" in the first line */ |
| 1486 | } |
| 1487 | |
| 1488 | |
| 1489 | static void exprstat (LexState *ls) { |
no test coverage detected