MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / fieldsel

Function fieldsel

3rd/lua-5.4.3/src/lparser.c:799–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797
798
799static void fieldsel (LexState *ls, expdesc *v) {
800 /* fieldsel -> ['.' | ':'] NAME */
801 FuncState *fs = ls->fs;
802 expdesc key;
803 luaK_exp2anyregup(fs, v);
804 luaX_next(ls); /* skip the dot or colon */
805 codename(ls, &key);
806 luaK_indexed(fs, v, &key);
807}
808
809
810static 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