Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions source/parse.h
Original file line number Diff line number Diff line change
Expand Up @@ -3383,6 +3383,16 @@ struct declaration_node
return false;
}

auto get_function_parameters()
-> std::span<std::unique_ptr<parameter_declaration_node>>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually don't expose the unique_ptr. Also I usually as const.

Perhaps -> std::vector<parameter_declaration_node const*>?

{
if (!is_function()) {
return {};
}
// else
return std::get<a_function>(type)->parameters->parameters;
}

auto unnamed_return_type_to_string() const
-> std::string
{
Expand Down
Loading