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

Function field

Source/Misc/lua/src/lua.c:7983–7991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7981
7982
7983static void field (LexState *ls, expdesc *v) {
7984/* field -> ['.' | ':'] NAME */
7985FuncState *fs = ls->fs;
7986expdesc key;
7987luaK_exp2anyreg(fs, v);
7988luaX_next(ls); /* skip the dot or colon */
7989checkname(ls, &key);
7990luaK_indexed(fs, v, &key);
7991}
7992
7993
7994static void yindex (LexState *ls, expdesc *v) {

Callers 2

primaryexpFunction · 0.85
funcnameFunction · 0.85

Calls 4

luaK_exp2anyregFunction · 0.85
luaX_nextFunction · 0.85
checknameFunction · 0.85
luaK_indexedFunction · 0.85

Tested by

no test coverage detected