MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / exprstat

Function exprstat

third-party/lua-5.2.4/src/lparser.c:1480–1493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

statementFunction · 0.70

Calls 2

suffixedexpFunction · 0.70
assignmentFunction · 0.70

Tested by

no test coverage detected