MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / singlevar

Function singlevar

Source/Misc/lua/src/lua.c:7824–7829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7822
7823
7824static void singlevar (LexState *ls, expdesc *var) {
7825TString *varname = str_checkname(ls);
7826FuncState *fs = ls->fs;
7827if (singlevaraux(fs, varname, var, 1) == VGLOBAL)
7828var->u.s.info = luaK_stringK(fs, varname); /* info points to global name */
7829}
7830
7831
7832static 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