From 14d4977e2ab2409bb7344395ca01d19e49f130f1 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 11 Jul 2026 22:33:03 +0200 Subject: Implement record extension --- boot/ast.cc | 75 +++++++++++++++++++++++++++++-------------------------------- 1 file changed, 35 insertions(+), 40 deletions(-) (limited to 'boot/ast.cc') diff --git a/boot/ast.cc b/boot/ast.cc index 4270a3b..d0d19b7 100644 --- a/boot/ast.cc +++ b/boot/ast.cc @@ -19,184 +19,179 @@ along with GCC; see the file COPYING3. If not see namespace elna::boot { - void empty_visitor::not_implemented() - { - __builtin_unreachable(); - } - void empty_visitor::visit(array_type_expression *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(pointer_type_expression *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(type_declaration *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(record_type_expression *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(union_type_expression *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(procedure_type_expression *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(enumeration_type_expression *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(variable_declaration *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(constant_declaration *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(procedure_declaration *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(assign_statement *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(if_statement *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(import_declaration *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(while_statement *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(return_statement *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(defer_statement *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(empty_statement *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(case_statement *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(procedure_call *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(unit *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(cast_expression *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(traits_expression *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(binary_expression *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(unary_expression *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(named_expression *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(array_access_expression *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(field_access_expression *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(dereference_expression *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(literal *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(literal *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(literal *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(literal *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(literal *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(literal *) { - not_implemented(); + __builtin_unreachable(); } void empty_visitor::visit(literal *) { - not_implemented(); + __builtin_unreachable(); } void walking_visitor::visit(import_declaration *) -- cgit v1.2.3