| 8150 | |
| 8151 | |
| 8152 | static void body (LexState *ls, expdesc *e, int needself, int line) { |
| 8153 | /* body -> `(' parlist `)' chunk END */ |
| 8154 | FuncState new_fs; |
| 8155 | open_func(ls, &new_fs); |
| 8156 | new_fs.f->linedefined = line; |
| 8157 | checknext(ls, '('); |
| 8158 | if (needself) { |
| 8159 | new_localvarliteral(ls, "self", 0); |
| 8160 | adjustlocalvars(ls, 1); |
| 8161 | } |
| 8162 | parlist(ls); |
| 8163 | checknext(ls, ')'); |
| 8164 | chunk(ls); |
| 8165 | new_fs.f->lastlinedefined = ls->linenumber; |
| 8166 | check_match(ls, TK_END, TK_FUNCTION, line); |
| 8167 | close_func(ls); |
| 8168 | pushclosure(ls, &new_fs, e); |
| 8169 | } |
| 8170 | |
| 8171 | |
| 8172 | static int explist1 (LexState *ls, expdesc *v) { |
no test coverage detected