mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-24 11:42:51 +00: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:
1 parent
f9979e3cb1
commit
16bbdbbdb8
9 files changed
+61
-21
No files matched your search
@@ -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