MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ifstat

Function ifstat

freebsd/contrib/openzfs/module/lua/lparser.c:1414–1425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1412
1413
1414static void ifstat (LexState *ls, int line) {
1415 /* ifstat -> IF cond THEN block {ELSEIF cond THEN block} [ELSE block] END */
1416 FuncState *fs = ls->fs;
1417 int escapelist = NO_JUMP; /* exit list for finished parts */
1418 test_then_block(ls, &escapelist); /* IF cond THEN block */
1419 while (ls->t.token == TK_ELSEIF)
1420 test_then_block(ls, &escapelist); /* ELSEIF cond THEN block */
1421 if (testnext(ls, TK_ELSE))
1422 block(ls); /* `else' part */
1423 check_match(ls, TK_END, TK_IF, line);
1424 luaK_patchtohere(fs, escapelist); /* patch escape list to 'if' end */
1425}
1426
1427
1428static void localfunc (LexState *ls) {

Callers 1

statementFunction · 0.70

Calls 5

test_then_blockFunction · 0.70
testnextFunction · 0.70
blockFunction · 0.70
check_matchFunction · 0.70
luaK_patchtohereFunction · 0.70

Tested by

no test coverage detected