From acb1c33ab258dc14dcc51b405b44cc5923b34324 Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Fri, 18 Apr 2025 08:52:16 +0000
Subject: [PATCH] add function call

---
 src/Symbols/SymbolFactory.hpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/Symbols/SymbolFactory.hpp b/src/Symbols/SymbolFactory.hpp
index 5b7a168..dd9007f 100644
--- a/src/Symbols/SymbolFactory.hpp
+++ b/src/Symbols/SymbolFactory.hpp
@@ -14,6 +14,11 @@
 class SymbolFactory {
   public:
     static std::shared_ptr<Symbol> createVariable(const std::string & name, const Symbols::Value & value,
+                                                  const std::string & context) {
+        return std::make_shared<VariableSymbol>(name, value, context, value.getType());
+    }
+
+    static std::shared_ptr<Symbol> createVariable(const std::string & name, const Symbols::Value & value,
                                                   const std::string & context, Variables::Type type) {
         return std::make_shared<VariableSymbol>(name, value, context, type);
     }

--
Gitblit v1.9.3