| 1706 | |
| 1707 | |
| 1708 | static void localfunc (LexState *ls) { |
| 1709 | expdesc b; |
| 1710 | FuncState *fs = ls->fs; |
| 1711 | int fvar = fs->nactvar; /* function's variable index */ |
| 1712 | new_localvar(ls, str_checkname(ls)); /* new local variable */ |
| 1713 | adjustlocalvars(ls, 1); /* enter its scope */ |
| 1714 | body(ls, &b, 0, ls->linenumber); /* function created in next register */ |
| 1715 | /* debug information will only see the variable after this point! */ |
| 1716 | localdebuginfo(fs, fvar)->startpc = fs->pc; |
| 1717 | } |
| 1718 | |
| 1719 | |
| 1720 | static int getlocalattribute (LexState *ls) { |
no test coverage detected