2020-09-08 23:20:32 -07:00
|
|
|
#ifndef POLSERVER_FUNCTIONREFERENCE_H
|
|
|
|
|
#define POLSERVER_FUNCTIONREFERENCE_H
|
|
|
|
|
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/ast/Value.h"
|
2020-09-08 23:20:32 -07:00
|
|
|
|
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
|
|
|
{
|
|
|
|
|
class FunctionLink;
|
|
|
|
|
|
|
|
|
|
class FunctionReference : public Value
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
FunctionReference( const SourceLocation&, std::string name, std::shared_ptr<FunctionLink> );
|
|
|
|
|
|
|
|
|
|
void accept( NodeVisitor& ) override;
|
2024-01-12 06:51:44 +01:00
|
|
|
void describe_to( std::string& ) const override;
|
2020-09-08 23:20:32 -07:00
|
|
|
|
|
|
|
|
const std::string name;
|
|
|
|
|
const std::shared_ptr<FunctionLink> function_link;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
|
|
|
|
|
|
#endif // POLSERVER_FUNCTIONREFERENCE_H
|