Parser: Move 'with' block unsupported messages down out of parser

This commit is contained in:
Wilson Snyder
2020-06-30 21:37:11 -04:00
parent 788fe3dc27
commit 236c2141e3
4 changed files with 43 additions and 23 deletions
+5
View File
@@ -2402,6 +2402,11 @@ private:
}
m_ds = lastStates;
}
virtual void visit(AstWith* nodep) VL_OVERRIDE {
nodep->v3warn(E_UNSUPPORTED, "Unsupported: with statements");
nodep->replaceWith(nodep->funcrefp()->unlinkFrBack());
VL_DO_DANGLING(nodep->deleteTree(), nodep);
}
virtual void visit(AstVar* nodep) VL_OVERRIDE {
checkNoDot(nodep);
iterateChildren(nodep);