MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / field

Function field

deps/lua/src/lparser.c:407–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

primaryexpFunction · 0.85
funcnameFunction · 0.85

Calls 4

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

Tested by

no test coverage detected