Added ParseFunctionCall

This commit is contained in:
Pasha Bibko
2025-08-04 16:07:35 +01:00
parent 820d374fa0
commit e3ed34c205
3 changed files with 45 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ namespace LXC::AST
class FunctionCall final : public NodeValue
{
public:
FunctionCall(Identifier& functionName, ValueList& arguments);
FunctionCall(const Identifier& functionName, ValueList& arguments);
private:
// The name of the function //

View File

@@ -4,8 +4,8 @@
namespace LXC::AST
{
FunctionCall::FunctionCall (Identifier& functionName, ValueList& arguments)
: NodeValue(NodeType::FunctionCall), m_FuncName(std::move(functionName)), m_Arguments(std::move(arguments))
FunctionCall::FunctionCall (const Identifier& functionName, ValueList& arguments)
: NodeValue(NodeType::FunctionCall), m_FuncName(functionName), m_Arguments(std::move(arguments))
{}
IntLiteral::IntLiteral(const std::string_view& value)