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

Function field

src/Chain/libraries/glua/lparser.cpp:730–749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728
729
730static void field(LexState *ls, struct ConsControl *cc) {
731 /* field -> listfield | recfield */
732 switch (ls->t.token) {
733 case TK_NAME: { /* may be 'listfield' or 'recfield' */
734 if (luaX_lookahead(ls) != '=') /* expression? */
735 listfield(ls, cc);
736 else
737 recfield(ls, cc);
738 break;
739 }
740 case '[': {
741 recfield(ls, cc);
742 break;
743 }
744 default: {
745 listfield(ls, cc);
746 break;
747 }
748 }
749}
750
751
752static void constructor(LexState *ls, expdesc *t) {

Callers 1

constructorFunction · 0.70

Calls 3

luaX_lookaheadFunction · 0.85
listfieldFunction · 0.85
recfieldFunction · 0.85

Tested by

no test coverage detected