aboutsummaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-10-12 22:25:46 +0200
committerEugen Wissner <belka@caraus.de>2026-10-12 22:25:46 +0200
commitde6ecae0f072bb32be95382c536a517eabe4b1f1 (patch)
tree2a337dea0f9b124da9436c16e80b7d8f3f8000fb /boot
parentda1e84e33de1a9c2cc1745b8f42bc7f0cee8fc5c (diff)
downloadelna-cpp.tar.gz
Fix empty sections in tree-sitterHEADcpp
Diffstat (limited to 'boot')
-rw-r--r--boot/evaluator.cc9
1 files changed, 1 insertions, 8 deletions
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_info> variable = symbol->is_variable();
-
- if (variable == nullptr
- || resolve_aliases(variable->symbol).get<constant_type>() == nullptr)
- {
- return std::nullopt;
- }
- return variable->value;
+ return std::nullopt;
}
std::optional<constant_value> evaluator::evaluate_array_access(array_access_expression& subject)