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

Function anchor_token

lua/lparser.c:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57
58static void anchor_token (LexState *ls) {
59 if (ls->t.token == TK_NAME || ls->t.token == TK_STRING) {
60 TString *ts = ls->t.seminfo.ts;
61 luaX_newstring(ls, getstr(ts), ts->tsv.len);
62 }
63}
64
65
66static void error_expected (LexState *ls, int token) {

Callers 1

close_funcFunction · 0.85

Calls 2

luaX_newstringFunction · 0.85
getstrFunction · 0.85

Tested by

no test coverage detected