polserver/pol-core/bscript/compiler/ast/UserFunction.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

33 lines
858 B
C++

#ifndef POLSERVER_USERFUNCTION_H
#define POLSERVER_USERFUNCTION_H
#include "bscript/compiler/ast/Function.h"
#include "bscript/compiler/model/LocalVariableScopeInfo.h"
namespace Pol::Bscript::Compiler
{
class FunctionParameterList;
class FunctionBody;
class Variable;
class UserFunction : public Function
{
public:
UserFunction( const SourceLocation&, bool exported, std::string name,
std::unique_ptr<FunctionParameterList>, std::unique_ptr<FunctionBody>,
const SourceLocation& endfunction_location );
void accept( NodeVisitor& ) override;
void describe_to( std::string& ) const override;
const bool exported;
const SourceLocation endfunction_location;
LocalVariableScopeInfo local_variable_scope_info;
FunctionBody& body();
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_USERFUNCTION_H