Skip to content

Commit 7ae6b5a

Browse files
committed
Oops, fix stray partial commit
The previous commit accidentally included the first part of the next piece of work, which broke the build -- this unbreaks it
1 parent e38838e commit 7ae6b5a

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

source/parse.h

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,6 +2536,16 @@ struct declaration_node
25362536

25372537
// API
25382538
//
2539+
auto type_member_mark_for_removal()
2540+
-> bool
2541+
{
2542+
if (my_statement) {
2543+
my_statement->marked_for_removal = true;
2544+
return true;
2545+
}
2546+
return false;
2547+
}
2548+
25392549
auto type_remove_all_members()
25402550
-> void
25412551
{
@@ -6930,7 +6940,7 @@ class parser
69306940
return n;
69316941
}
69326942

6933-
else if (auto s = declaration()) {
6943+
else if (auto s = declaration(true, false, false, n.get())) {
69346944
n->statement = std::move(s);
69356945
assert (n->is_declaration());
69366946
return n;
@@ -7558,7 +7568,7 @@ class parser
75587568
std::unique_ptr<unqualified_id_node> id = {},
75597569
accessibility access = {},
75607570
bool is_variadic = false,
7561-
statement_node const* my_stmt = {}
7571+
statement_node* my_stmt = {}
75627572
)
75637573
-> std::unique_ptr<declaration_node>
75647574
{
@@ -8222,10 +8232,10 @@ class parser
82228232
//G private
82238233
//G
82248234
auto declaration(
8225-
bool semicolon_required = true,
8226-
bool is_parameter = false,
8227-
bool is_template_parameter = false,
8228-
statement_node const* my_stmt = {}
8235+
bool semicolon_required = true,
8236+
bool is_parameter = false,
8237+
bool is_template_parameter = false,
8238+
statement_node* my_stmt = {}
82298239
)
82308240
-> std::unique_ptr<declaration_node>
82318241
{

0 commit comments

Comments
 (0)