MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / txtToken

Function txtToken

lua/llex.c:91–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91const 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 luaZ_buffer(ls->buff);
98 default:
99 return luaX_token2str(ls, token);
100 }
101}
102
103
104void luaX_lexerror (LexState *ls, const char *msg, int token) {

Callers 2

luaX_lexerrorFunction · 0.85
parlistFunction · 0.85

Calls 2

saveFunction · 0.85
luaX_token2strFunction · 0.85

Tested by

no test coverage detected