Add JSON AST dumps (#5020)

This commit is contained in:
Szymon Gizler
2024-03-28 07:32:18 -04:00
committed by GitHub
parent f645382f11
commit 8301fdc6d3
17 changed files with 828 additions and 26 deletions
+1 -1
View File
@@ -709,7 +709,7 @@ static void verilate(const string& argString) {
// Final steps
V3Global::dumpCheckGlobalTree("final", 990, dumpTreeEitherLevel() >= 3);
if (v3Global.opt.jsonOnly()) {
if (v3Global.opt.jsonOnly() || dumpTreeJsonLevel()) {
const string filename
= (v3Global.opt.jsonOnlyMetaOutput().empty()
? v3Global.opt.makeDir() + "/" + v3Global.opt.prefix() + ".tree.meta.json"