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

Function exprstat

third-party/lua-5.3.5/src/lparser.c:1488–1501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

statementFunction · 0.70

Calls 2

suffixedexpFunction · 0.70
assignmentFunction · 0.70

Tested by

no test coverage detected