mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
28 lines
762 B
C
28 lines
762 B
C
|
|
#ifndef POLSERVER_MODULEFUNCTIONDECLARATION_H
|
||
|
|
#define POLSERVER_MODULEFUNCTIONDECLARATION_H
|
||
|
|
|
||
|
|
#include "compiler/ast/Function.h"
|
||
|
|
|
||
|
|
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
|