File tree 1 file changed +16
-12
lines changed
1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -1913,20 +1913,10 @@ struct compound_statement_node
1913
1913
return open_brace;
1914
1914
}
1915
1915
1916
- auto add_statement (
1916
+ auto add_statement (
1917
1917
std::unique_ptr<statement_node>&& statement,
1918
1918
int before_pos
1919
- )
1920
- -> bool
1921
- {
1922
- // Adopt this statement into our list of statements
1923
- statements.insert (
1924
- statements.begin () + std::clamp ( before_pos, 0 , unchecked_narrow<int >(std::ssize (statements)) ),
1925
- std::move (statement)
1926
- );
1927
-
1928
- return true ;
1929
- }
1919
+ ) -> bool;
1930
1920
1931
1921
auto visit (auto & v, int depth) -> void;
1932
1922
};
@@ -2320,6 +2310,20 @@ auto alternative_node::visit(auto& v, int depth)
2320
2310
v.end (*this , depth);
2321
2311
}
2322
2312
2313
+ auto compound_statement_node::add_statement (
2314
+ std::unique_ptr<statement_node>&& statement,
2315
+ int before_pos
2316
+ )
2317
+ -> bool
2318
+ {
2319
+ // Adopt this statement into our list of statements
2320
+ statements.insert (
2321
+ statements.begin () + std::clamp ( before_pos, 0 , unchecked_narrow<int >(std::ssize (statements)) ),
2322
+ std::move (statement)
2323
+ );
2324
+
2325
+ return true ;
2326
+ }
2323
2327
2324
2328
auto compound_statement_node::visit (auto & v, int depth)
2325
2329
-> void
You can’t perform that action at this time.
0 commit comments