MCPcopy Create free account
hub / github.com/F-Stack/f-stack / field

Function field

freebsd/contrib/openzfs/module/lua/lparser.c:712–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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