MCPcopy Create free account
hub / github.com/axmolengine/axmol / field

Function field

3rdparty/lua/plainlua/lparser.c:902–921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

900
901
902static void field (LexState *ls, ConsControl *cc) {
903 /* field -> listfield | recfield */
904 switch(ls->t.token) {
905 case TK_NAME: { /* may be 'listfield' or 'recfield' */
906 if (luaX_lookahead(ls) != '=') /* expression? */
907 listfield(ls, cc);
908 else
909 recfield(ls, cc);
910 break;
911 }
912 case '[': {
913 recfield(ls, cc);
914 break;
915 }
916 default: {
917 listfield(ls, cc);
918 break;
919 }
920 }
921}
922
923
924static 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