MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / field

Function field

other_src/lua/src/lparser.cpp: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.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