Parse cpp_constructor
This commit is contained in:
parent
8691628ec5
commit
68c74a9f07
8 changed files with 136 additions and 14 deletions
|
|
@ -23,6 +23,13 @@ std::unique_ptr<cpp_function_parameter> cpp_function_parameter::build(
|
|||
return result;
|
||||
}
|
||||
|
||||
std::unique_ptr<cpp_function_parameter> cpp_function_parameter::build(
|
||||
std::unique_ptr<cpp_type> type, std::unique_ptr<cpp_expression> def)
|
||||
{
|
||||
return std::unique_ptr<cpp_function_parameter>(
|
||||
new cpp_function_parameter("", std::move(type), std::move(def)));
|
||||
}
|
||||
|
||||
cpp_entity_kind cpp_function_parameter::do_get_entity_kind() const noexcept
|
||||
{
|
||||
return kind();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue