MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / labelstat

Function labelstat

Dependencies/lua/src/lparser.c:1458–1465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

statementFunction · 0.85

Calls 5

checknextFunction · 0.85
statementFunction · 0.85
checkrepeatedFunction · 0.85
createlabelFunction · 0.85
block_followFunction · 0.85

Tested by

no test coverage detected