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

Function singlevar

deps/lua/src/lparser.c:248–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246
247
248static void singlevar (LexState *ls, expdesc *var) {
249 TString *varname = str_checkname(ls);
250 FuncState *fs = ls->fs;
251 if (singlevaraux(fs, varname, var, 1) == VGLOBAL)
252 var->u.s.info = luaK_stringK(fs, varname); /* info points to global name */
253}
254
255
256static void adjust_assign (LexState *ls, int nvars, int nexps, expdesc *e) {

Callers 2

prefixexpFunction · 0.85
funcnameFunction · 0.85

Calls 3

str_checknameFunction · 0.85
singlevarauxFunction · 0.85
luaK_stringKFunction · 0.85

Tested by

no test coverage detected