From de6ecae0f072bb32be95382c536a517eabe4b1f1 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 12 Oct 2026 22:25:46 +0200 Subject: Fix empty sections in tree-sitter --- boot/evaluator.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'boot/evaluator.cc') diff --git a/boot/evaluator.cc b/boot/evaluator.cc index a96d8ab..4eed818 100644 --- a/boot/evaluator.cc +++ b/boot/evaluator.cc @@ -299,14 +299,7 @@ namespace elna::boot { return constant->value; } - const std::shared_ptr variable = symbol->is_variable(); - - if (variable == nullptr - || resolve_aliases(variable->symbol).get() == nullptr) - { - return std::nullopt; - } - return variable->value; + return std::nullopt; } std::optional evaluator::evaluate_array_access(array_access_expression& subject) -- cgit v1.2.3