aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-08-23 20:01:55 +0200
committerEugen Wissner <belka@caraus.de>2026-08-23 20:01:55 +0200
commit7d0d0eb69589ab8e0c8b036a3b642593a372b041 (patch)
treecf3731cec0ab67a0d574450fbe24c3cff4a7a9e6 /include
parentbf41d022ce9736a92097f416ab96fca7ab4594ca (diff)
downloadelna-7d0d0eb69589ab8e0c8b036a3b642593a372b041.tar.gz
Determine array type by the first element
Diffstat (limited to 'include')
-rw-r--r--include/elna/boot/ast.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/elna/boot/ast.h b/include/elna/boot/ast.h
index 94488ff..c6a0828 100644
--- a/include/elna/boot/ast.h
+++ b/include/elna/boot/ast.h
@@ -487,18 +487,14 @@ namespace elna::boot
class array_constructor_expression : public expression
{
- array_type_expression *m_element_type;
-
public:
const std::vector<expression *> elements;
array_constructor_expression(const source_position position,
- array_type_expression *element_type, std::vector<expression *>&& elements);
+ std::vector<expression *>&& elements);
void accept(parser_visitor *visitor) override;
array_constructor_expression *is_array_constructor() override;
- array_type_expression& array_type() const;
-
~array_constructor_expression() override;
};