MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / test_then_block

Function test_then_block

deps/lua/src/lparser.c:1130–1138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1128
1129
1130static int test_then_block (LexState *ls) {
1131 /* test_then_block -> [IF | ELSEIF] cond THEN block */
1132 int condexit;
1133 luaX_next(ls); /* skip IF or ELSEIF */
1134 condexit = cond(ls);
1135 checknext(ls, TK_THEN);
1136 block(ls); /* `then' part */
1137 return condexit;
1138}
1139
1140
1141static void ifstat (LexState *ls, int line) {

Callers 1

ifstatFunction · 0.85

Calls 4

luaX_nextFunction · 0.85
condFunction · 0.85
checknextFunction · 0.85
blockFunction · 0.85

Tested by

no test coverage detected