MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / exprstat

Function exprstat

lua/lparser.c:1310–1321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1308
1309
1310static void exprstat (LexState *ls) {
1311 /* stat -> func | assignment */
1312 FuncState *fs = ls->fs;
1313 struct LHS_assign v;
1314 primaryexp(ls, &v.v);
1315 if (v.v.k == VCALL) /* stat -> func */
1316 SETARG_C(getcode(fs, &v.v), 1); /* call statement uses no results */
1317 else { /* stat -> assignment */
1318 v.prev = NULL;
1319 assignment(ls, &v, 1);
1320 }
1321}
1322
1323
1324static void retstat (LexState *ls) {

Callers 1

statementFunction · 0.85

Calls 2

primaryexpFunction · 0.85
assignmentFunction · 0.85

Tested by

no test coverage detected