Unify the build_type function
This commit is contained in:
@ -464,7 +464,8 @@ namespace boot
|
||||
return *m_base;
|
||||
}
|
||||
|
||||
record_type_expression::record_type_expression(const struct position position, fields_t&& fields)
|
||||
record_type_expression::record_type_expression(const struct position position,
|
||||
std::vector<field_declaration>&& fields)
|
||||
: type_expression(position), fields(std::move(fields))
|
||||
{
|
||||
}
|
||||
@ -479,7 +480,8 @@ namespace boot
|
||||
return std::static_pointer_cast<record_type_expression>(shared_from_this());
|
||||
}
|
||||
|
||||
union_type_expression::union_type_expression(const struct position position, fields_t&& fields)
|
||||
union_type_expression::union_type_expression(const struct position position,
|
||||
std::vector<field_declaration>&& fields)
|
||||
: type_expression(position), fields(std::move(fields))
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user