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

Function localfunc

third-party/lua-5.4.6/src/lparser.c:1688–1697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1686
1687
1688static void localfunc (LexState *ls) {
1689 expdesc b;
1690 FuncState *fs = ls->fs;
1691 int fvar = fs->nactvar; /* function's variable index */
1692 new_localvar(ls, str_checkname(ls)); /* new local variable */
1693 adjustlocalvars(ls, 1); /* enter its scope */
1694 body(ls, &b, 0, ls->linenumber); /* function created in next register */
1695 /* debug information will only see the variable after this point! */
1696 localdebuginfo(fs, fvar)->startpc = fs->pc;
1697}
1698
1699
1700static int getlocalattribute (LexState *ls) {

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