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 authored and GitHub committed 2022-11-30 17:28:49 -08:00
1 parent f9979e3cb1
commit 16bbdbbdb8
9 files changed
+61 -21

No files matched your search

+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);