polserver/pol-core/bscript/compiler/ast/FunctionCall.h
turleypol 0e675c516a
use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595)
* use new formatter for ERROR_PRINT, added ERROR_PRINTLN

* remove old log define

* fix comments
2024-01-12 06:51:44 +01:00

36 lines
931 B
C++

#ifndef POLSERVER_FUNCTIONCALL_H
#define POLSERVER_FUNCTIONCALL_H
#include "bscript/compiler/ast/Expression.h"
namespace Pol::Bscript::Compiler
{
class Argument;
class FunctionLink;
class ModuleFunctionDeclaration;
class FunctionParameterDeclaration;
class UserFunction;
class FunctionCall : public Expression
{
public:
FunctionCall( const SourceLocation&, std::string scope, std::string name,
std::vector<std::unique_ptr<Argument>> arguments );
void accept( NodeVisitor& visitor ) override;
void describe_to( std::string& ) const override;
std::vector<std::unique_ptr<Argument>> take_arguments();
[[nodiscard]] std::vector<std::reference_wrapper<FunctionParameterDeclaration>> parameters()
const;
const std::shared_ptr<FunctionLink> function_link;
const std::string scope;
const std::string method_name;
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_FUNCTIONCALL_H