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

Function field

third-party/lua-5.5.0/src/lparser.c:990–1009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

988
989
990static void field (LexState *ls, ConsControl *cc) {
991 /* field -> listfield | recfield */
992 switch(ls->t.token) {
993 case TK_NAME: { /* may be 'listfield' or 'recfield' */
994 if (luaX_lookahead(ls) != '=') /* expression? */
995 listfield(ls, cc);
996 else
997 recfield(ls, cc);
998 break;
999 }
1000 case '[': {
1001 recfield(ls, cc);
1002 break;
1003 }
1004 default: {
1005 listfield(ls, cc);
1006 break;
1007 }
1008 }
1009}
1010
1011
1012/*

Callers 1

constructorFunction · 0.70

Calls 3

luaX_lookaheadFunction · 0.70
listfieldFunction · 0.70
recfieldFunction · 0.70

Tested by

no test coverage detected