mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user