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

Function exprstat

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

Source from the content-addressed store, hash-verified

1483
1484
1485static void exprstat (LexState *ls) {
1486 /* stat -> func | assignment */
1487 FuncState *fs = ls->fs;
1488 struct LHS_assign v;
1489 suffixedexp(ls, &v.v);
1490 if (ls->t.token == '=' || ls->t.token == ',') { /* stat -> assignment ? */
1491 v.prev = NULL;
1492 assignment(ls, &v, 1);
1493 }
1494 else { /* stat -> func */
1495 check_condition(ls, v.v.k == VCALL, "syntax error");
1496 SETARG_C(getcode(fs, &v.v), 1); /* call statement uses no results */
1497 }
1498}
1499
1500
1501static void retstat (LexState *ls) {

Callers 1

statementFunction · 0.70

Calls 2

suffixedexpFunction · 0.85
assignmentFunction · 0.70

Tested by

no test coverage detected