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

Function exprstat

app/redis-6.2.6/deps/lua/src/lparser.c:1228–1239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1226
1227
1228static void exprstat (LexState *ls) {
1229 /* stat -> func | assignment */
1230 FuncState *fs = ls->fs;
1231 struct LHS_assign v;
1232 primaryexp(ls, &v.v);
1233 if (v.v.k == VCALL) /* stat -> func */
1234 SETARG_C(getcode(fs, &v.v), 1); /* call statement uses no results */
1235 else { /* stat -> assignment */
1236 v.prev = NULL;
1237 assignment(ls, &v, 1);
1238 }
1239}
1240
1241
1242static void retstat (LexState *ls) {

Callers 1

statementFunction · 0.70

Calls 2

primaryexpFunction · 0.70
assignmentFunction · 0.70

Tested by

no test coverage detected