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

Function field

third-party/lua-5.3.5/src/lparser.c:702–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700
701
702static void field (LexState *ls, struct ConsControl *cc) {
703 /* field -> listfield | recfield */
704 switch(ls->t.token) {
705 case TK_NAME: { /* may be 'listfield' or 'recfield' */
706 if (luaX_lookahead(ls) != '=') /* expression? */
707 listfield(ls, cc);
708 else
709 recfield(ls, cc);
710 break;
711 }
712 case '[': {
713 recfield(ls, cc);
714 break;
715 }
716 default: {
717 listfield(ls, cc);
718 break;
719 }
720 }
721}
722
723
724static 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