MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / field

Function field

third-party/lua-5.2.4/src/lparser.c:708–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706
707
708static void field (LexState *ls, struct ConsControl *cc) {
709 /* field -> listfield | recfield */
710 switch(ls->t.token) {
711 case TK_NAME: { /* may be 'listfield' or 'recfield' */
712 if (luaX_lookahead(ls) != '=') /* expression? */
713 listfield(ls, cc);
714 else
715 recfield(ls, cc);
716 break;
717 }
718 case '[': {
719 recfield(ls, cc);
720 break;
721 }
722 default: {
723 listfield(ls, cc);
724 break;
725 }
726 }
727}
728
729
730static void constructor (LexState *ls, expdesc *t) {

Callers 1

constructorFunction · 0.70

Calls 3

luaX_lookaheadFunction · 0.70
listfieldFunction · 0.70
recfieldFunction · 0.70

Tested by

no test coverage detected