MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / exprstat

Function exprstat

Source/Misc/lua/src/lua.c:8800–8811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8798
8799
8800static void exprstat (LexState *ls) {
8801/* stat -> func | assignment */
8802FuncState *fs = ls->fs;
8803struct LHS_assign v;
8804primaryexp(ls, &v.v);
8805if (v.v.k == VCALL) /* stat -> func */
8806SETARG_C(getcode(fs, &v.v), 1); /* call statement uses no results */
8807else { /* stat -> assignment */
8808v.prev = NULL;
8809assignment(ls, &v, 1);
8810}
8811}
8812
8813
8814static void retstat (LexState *ls) {

Callers 1

statementFunction · 0.85

Calls 2

primaryexpFunction · 0.85
assignmentFunction · 0.85

Tested by

no test coverage detected