MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / labelstat

Function labelstat

3rd/lua-5.4.3/src/lparser.c:1446–1453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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