MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / anchor_token

Function anchor_token

deps/lua/src/lparser.c:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

close_funcFunction · 0.85

Calls 1

luaX_newstringFunction · 0.85

Tested by

no test coverage detected