MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / localfunc

Function localfunc

third-party/lua-5.5.0/src/lparser.c:1781–1790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1779
1780
1781static void localfunc (LexState *ls) {
1782 expdesc b;
1783 FuncState *fs = ls->fs;
1784 int fvar = fs->nactvar; /* function's variable index */
1785 new_localvar(ls, str_checkname(ls)); /* new local variable */
1786 adjustlocalvars(ls, 1); /* enter its scope */
1787 body(ls, &b, 0, ls->linenumber); /* function created in next register */
1788 /* debug information will only see the variable after this point! */
1789 localdebuginfo(fs, fvar)->startpc = fs->pc;
1790}
1791
1792
1793static lu_byte getvarattribute (LexState *ls, lu_byte df) {

Callers 1

statementFunction · 0.70

Calls 5

new_localvarFunction · 0.70
str_checknameFunction · 0.70
adjustlocalvarsFunction · 0.70
bodyFunction · 0.70
localdebuginfoFunction · 0.70

Tested by

no test coverage detected