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 0b333f3 commit cd30a29Copy full SHA for cd30a29
source/parse.h
@@ -3323,6 +3323,17 @@ struct declaration_node
3323
return false;
3324
}
3325
3326
+
3327
+ auto get_function_parameters()
3328
+ -> std::span<std::unique_ptr<parameter_declaration_node>>
3329
+ {
3330
+ if (!is_function()) {
3331
+ return {};
3332
+ }
3333
+ // else
3334
+ return std::get<a_function>(type)->parameters->parameters;
3335
3336
3337
auto unnamed_return_type_to_string() const
3338
-> std::string
3339
{
0 commit comments