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

23 lines
555 B
C++

#ifndef POLSERVER_FUNCTIONBODY_H
#define POLSERVER_FUNCTIONBODY_H
#include "bscript/compiler/ast/Node.h"
namespace Pol::Bscript::Compiler
{
class Statement;
class FunctionBody : public Node // This is used for both UserFunction and Program. Better name?
{
public:
FunctionBody( const SourceLocation&, std::vector<std::unique_ptr<Statement>> );
void accept( NodeVisitor& ) override;
void describe_to( std::string& ) const override;
Statement* last_statement();
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_FUNCTIONBODY_H