| 578 | |
| 579 | |
| 580 | static void body (LexState *ls, expdesc *e, int needself, int line) { |
| 581 | /* body -> `(' parlist `)' chunk END */ |
| 582 | FuncState new_fs; |
| 583 | open_func(ls, &new_fs); |
| 584 | new_fs.f->linedefined = line; |
| 585 | checknext(ls, '('); |
| 586 | if (needself) { |
| 587 | new_localvarliteral(ls, "self", 0); |
| 588 | adjustlocalvars(ls, 1); |
| 589 | } |
| 590 | parlist(ls); |
| 591 | checknext(ls, ')'); |
| 592 | chunk(ls); |
| 593 | new_fs.f->lastlinedefined = ls->linenumber; |
| 594 | check_match(ls, TK_END, TK_FUNCTION, line); |
| 595 | close_func(ls); |
| 596 | pushclosure(ls, &new_fs, e); |
| 597 | } |
| 598 | |
| 599 | |
| 600 | static int explist1 (LexState *ls, expdesc *v) { |
no test coverage detected