MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / fieldsel

Function fieldsel

lib/lua/src/lparser.c:811–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

809
810
811static void fieldsel (LexState *ls, expdesc *v) {
812 /* fieldsel -> ['.' | ':'] NAME */
813 FuncState *fs = ls->fs;
814 expdesc key;
815 luaK_exp2anyregup(fs, v);
816 luaX_next(ls); /* skip the dot or colon */
817 codename(ls, &key);
818 luaK_indexed(fs, v, &key);
819}
820
821
822static void yindex (LexState *ls, expdesc *v) {

Callers 2

suffixedexpFunction · 0.85
funcnameFunction · 0.85

Calls 4

luaK_exp2anyregupFunction · 0.85
luaX_nextFunction · 0.85
codenameFunction · 0.85
luaK_indexedFunction · 0.85

Tested by

no test coverage detected