MCPcopy Create free account
hub / github.com/F-Stack/f-stack / field

Function field

app/redis-6.2.6/deps/lua/src/lparser.c:411–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409
410
411static void field (LexState *ls, expdesc *v) {
412 /* field -> ['.' | ':'] NAME */
413 FuncState *fs = ls->fs;
414 expdesc key;
415 luaK_exp2anyreg(fs, v);
416 luaX_next(ls); /* skip the dot or colon */
417 checkname(ls, &key);
418 luaK_indexed(fs, v, &key);
419}
420
421
422static void yindex (LexState *ls, expdesc *v) {

Callers 2

primaryexpFunction · 0.70
funcnameFunction · 0.70

Calls 4

luaK_exp2anyregFunction · 0.70
luaX_nextFunction · 0.70
checknameFunction · 0.70
luaK_indexedFunction · 0.70

Tested by

no test coverage detected