diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-07-12 13:23:54 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-07-12 13:23:54 +0200 |
| commit | 768537d6e4b82a19e77b7e44234309ecaf4d65d2 (patch) | |
| tree | ab22613a16c3a914b16d00a5f988f51d1eadac0d /boot/ast.cc | |
| parent | 14d4977e2ab2409bb7344395ca01d19e49f130f1 (diff) | |
| download | elna-768537d6e4b82a19e77b7e44234309ecaf4d65d2.tar.gz | |
Remove unions
Diffstat (limited to 'boot/ast.cc')
| -rw-r--r-- | boot/ast.cc | 34 |
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) |
