MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaX_next

Function luaX_next

extlibs/lua/src/llex.c:562–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560
561
562void luaX_next (LexState *ls) {
563 ls->lastline = ls->linenumber;
564 if (ls->lookahead.token != TK_EOS) { /* is there a look-ahead token? */
565 ls->t = ls->lookahead; /* use this one */
566 ls->lookahead.token = TK_EOS; /* and discharge it */
567 }
568 else
569 ls->t.token = llex(ls, &ls->t.seminfo); /* read next token */
570}
571
572
573int luaX_lookahead (LexState *ls) {

Callers 15

testnextFunction · 0.85
checknextFunction · 0.85
str_checknameFunction · 0.85
fieldselFunction · 0.85
yindexFunction · 0.85
parlistFunction · 0.85
funcargsFunction · 0.85
primaryexpFunction · 0.85
suffixedexpFunction · 0.85
simpleexpFunction · 0.85
subexprFunction · 0.85
breakstatFunction · 0.85

Calls 1

llexFunction · 0.85

Tested by 1

test_then_blockFunction · 0.68