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

Function luaX_next

app/redis-6.2.6/deps/lua/src/llex.c:453–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

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

Calls 1

llexFunction · 0.70

Tested by 1

test_then_blockFunction · 0.56