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

Function labelstat

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

Source from the content-addressed store, hash-verified

1571
1572
1573static void labelstat (LexState *ls, TString *name, int line) {
1574 /* label -> '::' NAME '::' */
1575 checknext(ls, TK_DBCOLON); /* skip double colon */
1576 while (ls->t.token == ';' || ls->t.token == TK_DBCOLON)
1577 statement(ls); /* skip other no-op statements */
1578 checkrepeated(ls, name); /* check for repeated labels */
1579 createlabel(ls, name, line, block_follow(ls, 0));
1580}
1581
1582
1583static 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