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

Function singlevar

lua/lparser.c:279–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277
278
279static void singlevar (LexState *ls, expdesc *var) {
280 TString *varname = str_checkname(ls);
281 FuncState *fs = ls->fs;
282 if (singlevaraux(fs, varname, var, 1) == VGLOBAL)
283 var->u.s.info = luaK_stringK(fs, varname); /* info points to global name */
284}
285
286
287static 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