Skip to content

Commit 64c84a4

Browse files
committed
refactor(parse): account for the type-id term in parse_tree_printer
1 parent 12f6501 commit 64c84a4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

source/parse.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9100,14 +9100,23 @@ class parse_tree_printer : printing_visitor
91009100
<< static_cast<void const*>(n.my_statement) << "]\n";
91019101
}
91029102

9103-
auto start(expression_list_node::expression_term const&n, int indent) -> void
9103+
auto start(expression_list_node::term const&, int indent) -> void
91049104
{
91059105
o << pre(indent) << "expression-list term\n";
9106+
}
9107+
9108+
auto start(expression_list_node::expression_term const&n, int indent) -> void
9109+
{
91069110
if (n.pass == passing_style::out) {
9107-
o << pre(indent+1) << "out\n";
9111+
o << pre(indent) << "out\n";
91089112
}
91099113
}
91109114

9115+
auto start(expression_list_node::type_id_term const&, int indent) -> void
9116+
{
9117+
o << pre(indent) << "type\n";
9118+
}
9119+
91119120
auto start(expression_list_node const&, int indent) -> void
91129121
{
91139122
o << pre(indent) << "expression-list\n";

0 commit comments

Comments
 (0)