MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / labelstat

Function labelstat

extlibs/lua/src/lparser.c:1439–1446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1437
1438
1439static void labelstat (LexState *ls, TString *name, int line) {
1440 /* label -> '::' NAME '::' */
1441 checknext(ls, TK_DBCOLON); /* skip double colon */
1442 while (ls->t.token == ';' || ls->t.token == TK_DBCOLON)
1443 statement(ls); /* skip other no-op statements */
1444 checkrepeated(ls, name); /* check for repeated labels */
1445 createlabel(ls, name, line, block_follow(ls, 0));
1446}
1447
1448
1449static 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