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

Function labelstat

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

Source from the content-addressed store, hash-verified

1455
1456
1457static void labelstat (LexState *ls, TString *name, int line) {
1458 /* label -> '::' NAME '::' */
1459 checknext(ls, TK_DBCOLON); /* skip double colon */
1460 while (ls->t.token == ';' || ls->t.token == TK_DBCOLON)
1461 statement(ls); /* skip other no-op statements */
1462 checkrepeated(ls, name); /* check for repeated labels */
1463 createlabel(ls, name, line, block_follow(ls, 0));
1464}
1465
1466
1467static void whilestat (LexState *ls, int line) {

Callers 1

statementFunction · 0.70

Calls 5

checknextFunction · 0.70
statementFunction · 0.70
checkrepeatedFunction · 0.70
createlabelFunction · 0.70
block_followFunction · 0.70

Tested by

no test coverage detected