aboutsummaryrefslogtreecommitdiff
path: root/boot/ast.cc
diff options
context:
space:
mode:
Diffstat (limited to 'boot/ast.cc')
-rw-r--r--boot/ast.cc34
1 files changed, 0 insertions, 34 deletions
diff --git a/boot/ast.cc b/boot/ast.cc
index d0d19b7..fbecf11 100644
--- a/boot/ast.cc
+++ b/boot/ast.cc
@@ -39,11 +39,6 @@ namespace elna::boot
__builtin_unreachable();
}
- void empty_visitor::visit(union_type_expression *)
- {
- __builtin_unreachable();
- }
-
void empty_visitor::visit(procedure_type_expression *)
{
__builtin_unreachable();
@@ -391,14 +386,6 @@ namespace elna::boot
}
}
- void walking_visitor::visit(union_type_expression *expression)
- {
- for (const field_declaration& field : expression->fields)
- {
- field.second->accept(this);
- }
- }
-
void walking_visitor::visit(procedure_type_expression *expression)
{
for (const field_declaration& field : expression->parameters)
@@ -557,11 +544,6 @@ namespace elna::boot
return nullptr;
}
- union_type_expression *type_expression::is_union()
- {
- return nullptr;
- }
-
procedure_type_expression *type_expression::is_procedure()
{
return nullptr;
@@ -646,22 +628,6 @@ namespace elna::boot
return this;
}
- union_type_expression::union_type_expression(const struct position position,
- std::vector<field_declaration>&& fields)
- : node(position), fields(std::move(fields))
- {
- }
-
- void union_type_expression::accept(parser_visitor *visitor)
- {
- visitor->visit(this);
- }
-
- union_type_expression *union_type_expression::is_union()
- {
- return this;
- }
-
variable_declaration::variable_declaration(const struct position position,
std::vector<identifier_definition>&& identifier, std::shared_ptr<type_expression> variable_type,
expression *initializer)