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

Function txtToken

freebsd/contrib/openzfs/module/lua/llex.c:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87
88static const char *txtToken (LexState *ls, int token) {
89 switch (token) {
90 case TK_NAME:
91 case TK_STRING:
92 case TK_NUMBER:
93 save(ls, '\0');
94 return luaO_pushfstring(ls->L, LUA_QS, luaZ_buffer(ls->buff));
95 default:
96 return luaX_token2str(ls, token);
97 }
98}
99
100
101static 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