polserver/pol-core/bscript/compiler/ast/BasicForLoop.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
840 B
C++

#ifndef POLSERVER_BASICFORLOOP_H
#define POLSERVER_BASICFORLOOP_H
#include "bscript/compiler/ast/LoopStatement.h"
#include "bscript/compiler/model/LocalVariableScopeInfo.h"
namespace Pol::Bscript::Compiler
{
class Block;
class Expression;
class Variable;
class BasicForLoop : public LoopStatement
{
public:
BasicForLoop( const SourceLocation&, std::string label, std::string identifier,
std::unique_ptr<Expression> first, std::unique_ptr<Expression> last,
std::unique_ptr<Block> );
void accept( NodeVisitor& ) override;
void describe_to( std::string& ) const override;
Expression& first();
Expression& last();
Block& block();
const std::string identifier;
LocalVariableScopeInfo local_variable_scope_info;
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_BASICFORLOOP_H