MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / field

Function field

lua/lparser.c:438–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436
437
438static void field (LexState *ls, expdesc *v) {
439 /* field -> ['.' | ':'] NAME */
440 FuncState *fs = ls->fs;
441 expdesc key;
442 luaK_exp2anyreg(fs, v);
443 luaX_next(ls); /* skip the dot or colon */
444 checkname(ls, &key);
445 luaK_indexed(fs, v, &key);
446}
447
448
449static void yindex (LexState *ls, expdesc *v) {

Callers 2

primaryexpFunction · 0.70
funcnameFunction · 0.70

Calls 4

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

Tested by

no test coverage detected