MCPcopy Create free account
hub / github.com/DFHack/dfhack / fieldsel

Function fieldsel

depends/lua/src/lparser.c:611–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609
610
611static void fieldsel (LexState *ls, expdesc *v) {
612 /* fieldsel -> ['.' | ':'] NAME */
613 FuncState *fs = ls->fs;
614 expdesc key;
615 luaK_exp2anyregup(fs, v);
616 luaX_next(ls); /* skip the dot or colon */
617 checkname(ls, &key);
618 luaK_indexed(fs, v, &key);
619}
620
621
622static void yindex (LexState *ls, expdesc *v) {

Callers 2

suffixedexpFunction · 0.85
funcnameFunction · 0.85

Calls 4

luaK_exp2anyregupFunction · 0.85
luaX_nextFunction · 0.85
checknameFunction · 0.85
luaK_indexedFunction · 0.85

Tested by

no test coverage detected