| 608 | |
| 609 | |
| 610 | static void body (LexState *ls, expdesc *e, int needself, int line) { |
| 611 | /* body -> `(' parlist `)' chunk END */ |
| 612 | FuncState new_fs; |
| 613 | open_func(ls, &new_fs); |
| 614 | new_fs.f->linedefined = line; |
| 615 | checknext(ls, '('); |
| 616 | if (needself) { |
| 617 | new_localvarliteral(ls, "self", 0); |
| 618 | adjustlocalvars(ls, 1); |
| 619 | } |
| 620 | parlist(ls); |
| 621 | checknext(ls, ')'); |
| 622 | chunk(ls); |
| 623 | new_fs.f->lastlinedefined = ls->linenumber; |
| 624 | check_match(ls, TK_END, TK_FUNCTION, line); |
| 625 | close_func(ls); |
| 626 | pushclosure(ls, &new_fs, e); |
| 627 | } |
| 628 | |
| 629 | |
| 630 | static int explist1 (LexState *ls, expdesc *v) { |
no test coverage detected