Add vlog output to the parser. (#2435)

Might eventually want to change this further, but I'm just adding the quick framework for it.
This commit is contained in:
Jon Ross-Perkins
2022-11-30 17:28:49 -08:00
committed by GitHub
parent f9979e3cb1
commit 16bbdbbdb8
9 changed files with 61 additions and 21 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ auto Driver::RunDumpSubcommand(DiagnosticConsumer& consumer,
return !tokenized_source.has_errors();
}
auto parse_tree = ParseTree::Parse(tokenized_source, consumer);
auto parse_tree = ParseTree::Parse(tokenized_source, consumer, vlog_stream_);
if (dump_mode == DumpMode::ParseTree) {
consumer.Flush();
parse_tree.Print(output_stream_, parse_tree_preorder);