We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
function_declaration::get_parameters
1 parent 61550a5 commit c66caf2Copy full SHA for c66caf2
source/parse.h
@@ -3301,6 +3301,17 @@ struct declaration_node
3301
return false;
3302
}
3303
3304
+
3305
+ auto get_function_parameters()
3306
+ -> std::span<std::unique_ptr<parameter_declaration_node>>
3307
+ {
3308
+ if (!is_function()) {
3309
+ return {};
3310
+ }
3311
+ // else
3312
+ return std::get<a_function>(type)->parameters->parameters;
3313
3314
3315
auto unnamed_return_type_to_string() const
3316
-> std::string
3317
{
0 commit comments