Support for-loop increments with commas.

This commit is contained in:
Wilson Snyder
2020-06-29 21:18:41 -04:00
parent af197f2ceb
commit 0b09636c58
6 changed files with 18 additions and 21 deletions
+6
View File
@@ -2027,6 +2027,12 @@ private:
// Generally resolved during Primay, but might be at param time under AstUnlinkedRef
UASSERT_OBJ(m_statep->forPrimary() || m_statep->forPrearray(), nodep,
"ParseRefs should no longer exist");
if (nodep->name() == "this") {
nodep->v3warn(E_UNSUPPORTED, "Unsupported: this");
}
else if (nodep->name() == "super") {
nodep->v3warn(E_UNSUPPORTED, "Unsupported: super");
}
DotStates lastStates = m_ds;
bool start = (m_ds.m_dotPos == DP_NONE); // Save, as m_dotp will be changed
if (start) {