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

Function txtToken

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

Source from the content-addressed store, hash-verified

89
90
91static const char *txtToken (LexState *ls, int token) {
92 switch (token) {
93 case TK_NAME:
94 case TK_STRING:
95 case TK_NUMBER:
96 save(ls, '\0');
97 return luaO_pushfstring(ls->L, LUA_QS, luaZ_buffer(ls->buff));
98 default:
99 return luaX_token2str(ls, token);
100 }
101}
102
103
104static l_noret lexerror (LexState *ls, const char *msg, int token) {

Callers 1

lexerrorFunction · 0.70

Calls 3

saveFunction · 0.70
luaO_pushfstringFunction · 0.70
luaX_token2strFunction · 0.70

Tested by

no test coverage detected