mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Carry 'with' clause as op4 on AstNodeFTaskRef (#7114)
op4 is now available to carry the 'with' clause explicitly instead of being part of the argument lit. Will strengthen 'pinsp' to be List[AstArg] next.
This commit is contained in:
@@ -1014,6 +1014,7 @@ class EmitVBaseVisitorConst VL_NOT_FINAL : public VNVisitorConst {
|
||||
puts("(");
|
||||
iterateAndNextConstNull(nodep->pinsp());
|
||||
puts(")");
|
||||
iterateConstNull(nodep->withp());
|
||||
}
|
||||
}
|
||||
void visit(AstCCall* nodep) override {
|
||||
@@ -1023,6 +1024,12 @@ class EmitVBaseVisitorConst VL_NOT_FINAL : public VNVisitorConst {
|
||||
puts(")");
|
||||
}
|
||||
void visit(AstArg* nodep) override { iterateAndNextConstNull(nodep->exprp()); }
|
||||
void visit(AstWith* nodep) override {
|
||||
putfs(nodep, "with (");
|
||||
iterateConstNull(nodep->exprp());
|
||||
puts(") ");
|
||||
}
|
||||
void visit(AstLambdaArgRef* nodep) override { putfs(nodep, nodep->name()); }
|
||||
void visit(AstPrintTimeScale* nodep) override {
|
||||
puts(nodep->verilogKwd());
|
||||
puts(";\n");
|
||||
|
||||
Reference in New Issue
Block a user