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

Function block

deps/lua/src/lparser.c:881–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879
880
881static void block (LexState *ls) {
882 /* block -> chunk */
883 FuncState *fs = ls->fs;
884 BlockCnt bl;
885 enterblock(fs, &bl, 0);
886 chunk(ls);
887 lua_assert(bl.breaklist == NO_JUMP);
888 leaveblock(fs);
889}
890
891
892/*

Callers 5

whilestatFunction · 0.85
forbodyFunction · 0.85
test_then_blockFunction · 0.85
ifstatFunction · 0.85
statementFunction · 0.85

Calls 3

enterblockFunction · 0.85
chunkFunction · 0.85
leaveblockFunction · 0.85

Tested by 1

test_then_blockFunction · 0.68