Skip to content

Commit

Permalink
Make SyntaxRewriter call Derived::visit() rather SyntaxVisitor::visit…
Browse files Browse the repository at this point in the history
…() (#1065)
  • Loading branch information
sgizler authored Jul 21, 2024
1 parent b5b8359 commit a963938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/slang/syntax/SyntaxVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class SyntaxRewriter : public SyntaxVisitor<TDerived> {
commits.clear();
tempTrees.clear();

tree->root().visit(*this);
tree->root().visit(*DERIVED);

if (commits.empty())
return tree;
Expand Down

0 comments on commit a963938

Please sign in to comment.