File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -694,6 +694,8 @@ auto to_string_view(passing_style pass) -> std::string_view {
694
694
}
695
695
696
696
697
+ struct type_id_node ;
698
+
697
699
struct expression_list_node
698
700
{
699
701
token const * open_paren = {};
@@ -713,6 +715,12 @@ struct expression_list_node
713
715
v.end (*this , depth);
714
716
}
715
717
};
718
+ struct type_id_term {
719
+ bool has_disambiguating_type = {};
720
+ std::unique_ptr<type_id_node> type;
721
+
722
+ auto visit (auto & v, int depth) -> void;
723
+ };
716
724
std::vector< expression_term > arguments;
717
725
718
726
@@ -1174,7 +1182,6 @@ auto prefix_expression_node::visit(auto& v, int depth)
1174
1182
}
1175
1183
1176
1184
1177
- struct type_id_node ;
1178
1185
struct template_args_tag { };
1179
1186
1180
1187
struct template_argument
@@ -1513,6 +1520,14 @@ auto template_argument::to_string() const
1513
1520
return {};
1514
1521
}
1515
1522
1523
+ auto expression_list_node::type_id_term::visit (auto & v, int depth) -> void
1524
+ {
1525
+ v.start (*this , depth);
1526
+ assert (type);
1527
+ type->visit (v, depth+1 );
1528
+ v.end (*this , depth);
1529
+ }
1530
+
1516
1531
1517
1532
struct is_as_expression_node
1518
1533
{
You can’t perform that action at this time.
0 commit comments