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

27 lines
629 B
C++

#ifndef POLSERVER_BLOCK_H
#define POLSERVER_BLOCK_H
#include "bscript/compiler/ast/Statement.h"
#include "bscript/compiler/model/LocalVariableScopeInfo.h"
namespace Pol::Bscript::Compiler
{
class NodeVisitor;
class Statement;
class Variable;
class Block : public Statement
{
public:
Block( const SourceLocation&, std::vector<std::unique_ptr<Statement>> statements );
void accept( NodeVisitor& visitor ) override;
void describe_to( std::string& ) const override;
// set by semantic analyzer:
LocalVariableScopeInfo local_variable_scope_info;
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_BLOCK_H