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

Function luaX_next

deps/lua/src/llex.c:448–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446
447
448void luaX_next (LexState *ls) {
449 ls->lastline = ls->linenumber;
450 if (ls->lookahead.token != TK_EOS) { /* is there a look-ahead token? */
451 ls->t = ls->lookahead; /* use this one */
452 ls->lookahead.token = TK_EOS; /* and discharge it */
453 }
454 else
455 ls->t.token = llex(ls, &ls->t.seminfo); /* read next token */
456}
457
458
459void luaX_lookahead (LexState *ls) {

Callers 15

testnextFunction · 0.85
checknextFunction · 0.85
str_checknameFunction · 0.85
luaY_parserFunction · 0.85
fieldFunction · 0.85
yindexFunction · 0.85
parlistFunction · 0.85
funcargsFunction · 0.85
prefixexpFunction · 0.85
primaryexpFunction · 0.85
simpleexpFunction · 0.85
subexprFunction · 0.85

Calls 1

llexFunction · 0.85

Tested by 1

test_then_blockFunction · 0.68