MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / exprstat

Function exprstat

lua/src/lparser.c:1794–1809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1792
1793
1794static void exprstat (LexState *ls) {
1795 /* stat -> func | assignment */
1796 FuncState *fs = ls->fs;
1797 struct LHS_assign v;
1798 suffixedexp(ls, &v.v);
1799 if (ls->t.token == '=' || ls->t.token == ',') { /* stat -> assignment ? */
1800 v.prev = NULL;
1801 restassign(ls, &v, 1);
1802 }
1803 else { /* stat -> func */
1804 Instruction *inst;
1805 check_condition(ls, v.v.k == VCALL, "syntax error");
1806 inst = &getinstruction(fs, &v.v);
1807 SETARG_C(*inst, 1); /* call statement uses no results */
1808 }
1809}
1810
1811
1812static void retstat (LexState *ls) {

Callers 1

statementFunction · 0.85

Calls 2

suffixedexpFunction · 0.85
restassignFunction · 0.85

Tested by

no test coverage detected