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

Function exprstat

third-party/lua-5.5.0/src/lparser.c:1999–2014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1997
1998
1999static void exprstat (LexState *ls) {
2000 /* stat -> func | assignment */
2001 FuncState *fs = ls->fs;
2002 struct LHS_assign v;
2003 suffixedexp(ls, &v.v);
2004 if (ls->t.token == '=' || ls->t.token == ',') { /* stat -> assignment ? */
2005 v.prev = NULL;
2006 restassign(ls, &v, 1);
2007 }
2008 else { /* stat -> func */
2009 Instruction *inst;
2010 check_condition(ls, v.v.k == VCALL, "syntax error");
2011 inst = &getinstruction(fs, &v.v);
2012 SETARG_C(*inst, 1); /* call statement uses no results */
2013 }
2014}
2015
2016
2017static void retstat (LexState *ls) {

Callers 1

statementFunction · 0.70

Calls 2

suffixedexpFunction · 0.70
restassignFunction · 0.70

Tested by

no test coverage detected