2020-08-23 15:01:39 -07:00
|
|
|
#ifndef POLSERVER_MODULEFUNCTIONDECLARATION_H
|
|
|
|
|
#define POLSERVER_MODULEFUNCTIONDECLARATION_H
|
|
|
|
|
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/ast/Function.h"
|
2020-08-23 15:01:39 -07:00
|
|
|
|
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
|
|
|
{
|
|
|
|
|
class NodeVisitor;
|
|
|
|
|
class FunctionParameterDeclaration;
|
|
|
|
|
class FunctionParameterList;
|
|
|
|
|
|
|
|
|
|
class ModuleFunctionDeclaration : public Function
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ModuleFunctionDeclaration( const SourceLocation& source_location, std::string module_name,
|
|
|
|
|
std::string name,
|
|
|
|
|
std::unique_ptr<FunctionParameterList> parameter_list );
|
|
|
|
|
|
|
|
|
|
void accept( NodeVisitor& visitor ) override;
|
|
|
|
|
void describe_to( fmt::Writer& ) const override;
|
|
|
|
|
|
|
|
|
|
const std::string module_name;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
|
|
|
|
|
|
#endif // POLSERVER_MODULEFUNCTIONDECLARATION_H
|