MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaX_next

Function luaX_next

third-party/lua-5.2.4/src/llex.c:514–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512
513
514void luaX_next (LexState *ls) {
515 ls->lastline = ls->linenumber;
516 if (ls->lookahead.token != TK_EOS) { /* is there a look-ahead token? */
517 ls->t = ls->lookahead; /* use this one */
518 ls->lookahead.token = TK_EOS; /* and discharge it */
519 }
520 else
521 ls->t.token = llex(ls, &ls->t.seminfo); /* read next token */
522}
523
524
525int luaX_lookahead (LexState *ls) {

Callers 15

testnextFunction · 0.70
checknextFunction · 0.70
str_checknameFunction · 0.70
fieldselFunction · 0.70
yindexFunction · 0.70
parlistFunction · 0.70
funcargsFunction · 0.70
primaryexpFunction · 0.70
suffixedexpFunction · 0.70
simpleexpFunction · 0.70
subexprFunction · 0.70
gotostatFunction · 0.70

Calls 1

llexFunction · 0.70

Tested by 1

test_then_blockFunction · 0.56