| 1675 | |
| 1676 | |
| 1677 | static void localfunc (LexState *ls) { |
| 1678 | expdesc b; |
| 1679 | FuncState *fs = ls->fs; |
| 1680 | int fvar = fs->nactvar; /* function's variable index */ |
| 1681 | new_localvar(ls, str_checkname(ls)); /* new local variable */ |
| 1682 | adjustlocalvars(ls, 1); /* enter its scope */ |
| 1683 | body(ls, &b, 0, ls->linenumber); /* function created in next register */ |
| 1684 | /* debug information will only see the variable after this point! */ |
| 1685 | localdebuginfo(fs, fvar)->startpc = fs->pc; |
| 1686 | } |
| 1687 | |
| 1688 | |
| 1689 | static int getlocalattribute (LexState *ls) { |
no test coverage detected