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

Function jumpscopeerror

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

** Generates an error that a goto jumps into the scope of some ** local variable. */

Source from the content-addressed store, hash-verified

512** local variable.
513*/
514static l_noret jumpscopeerror (LexState *ls, Labeldesc *gt) {
515 const char *varname = getstr(getlocalvardesc(ls->fs, gt->nactvar)->vd.name);
516 const char *msg = "<goto %s> at line %d jumps into the scope of local '%s'";
517 msg = luaO_pushfstring(ls->L, msg, getstr(gt->name), gt->line, varname);
518 luaK_semerror(ls, msg); /* raise the error */
519}
520
521
522/*

Callers 1

solvegotoFunction · 0.70

Calls 3

getlocalvardescFunction · 0.70
luaO_pushfstringFunction · 0.70
luaK_semerrorFunction · 0.70

Tested by

no test coverage detected