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

Function exprstat

third-party/lua-5.1.5/src/lparser.c:1224–1235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1222
1223
1224static void exprstat (LexState *ls) {
1225 /* stat -> func | assignment */
1226 FuncState *fs = ls->fs;
1227 struct LHS_assign v;
1228 primaryexp(ls, &v.v);
1229 if (v.v.k == VCALL) /* stat -> func */
1230 SETARG_C(getcode(fs, &v.v), 1); /* call statement uses no results */
1231 else { /* stat -> assignment */
1232 v.prev = NULL;
1233 assignment(ls, &v, 1);
1234 }
1235}
1236
1237
1238static void retstat (LexState *ls) {

Callers 1

statementFunction · 0.70

Calls 2

primaryexpFunction · 0.70
assignmentFunction · 0.70

Tested by

no test coverage detected