From d4b7f5e52a33f2d15aafca7f1b040f3f2821fd0c Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 8 Oct 2026 01:29:37 +0200 Subject: Move record constructor type into the braces --- include/elna/boot/ast.h | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/elna/boot/ast.h b/include/elna/boot/ast.h index c3b43bb..35cfc8d 100644 --- a/include/elna/boot/ast.h +++ b/include/elna/boot/ast.h @@ -559,24 +559,18 @@ namespace elna::boot class record_constructor_expression : public expression { + type_expression *m_record_type; + public: - const identifier type_name; const std::vector field_initializers; - /** - * Type arguments naming the instantiation being constructed. Empty - * when no argument list was written. - */ - const std::vector arguments; record_constructor_expression(const source_position position, - identifier&& type_name, - std::vector&& field_initializers); - record_constructor_expression(const source_position position, - identifier&& type_name, std::vector&& arguments, - std::vector&& field_initializers); + type_expression *record_type, std::vector&& field_initializers); ~record_constructor_expression() override; void accept(parser_visitor *visitor) override; record_constructor_expression *is_record_constructor() override; + + type_expression& record_type(); }; class array_constructor_expression : public expression -- cgit v1.2.3