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

Function jumpscopeerror

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

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

Source from the content-addressed store, hash-verified

578** variable declaration.
579*/
580static l_noret jumpscopeerror (LexState *ls, Labeldesc *gt) {
581 TString *tsname = getlocalvardesc(ls->fs, gt->nactvar)->vd.name;
582 const char *varname = (tsname != NULL) ? getstr(tsname) : "*";
583 luaK_semerror(ls,
584 "<goto %s> at line %d jumps into the scope of '%s'",
585 getstr(gt->name), gt->line, varname); /* raise the error */
586}
587
588
589/*

Callers 1

closegotoFunction · 0.70

Calls 2

getlocalvardescFunction · 0.70
luaK_semerrorFunction · 0.70

Tested by

no test coverage detected