MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / singlevar

Function singlevar

third-party/lua-5.1.5/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.70
funcnameFunction · 0.70

Calls 3

str_checknameFunction · 0.70
singlevarauxFunction · 0.70
luaK_stringKFunction · 0.70

Tested by

no test coverage detected