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

26 lines
592 B
C++

#ifndef POLSERVER_DOWHILELOOP_H
#define POLSERVER_DOWHILELOOP_H
#include "bscript/compiler/ast/LoopStatement.h"
namespace Pol::Bscript::Compiler
{
class Block;
class Expression;
class DoWhileLoop : public LoopStatement
{
public:
DoWhileLoop( const SourceLocation& source_location, std::string label, std::unique_ptr<Block>,
std::unique_ptr<Expression> );
void accept( NodeVisitor& ) override;
void describe_to( std::string& ) const override;
Block& block();
Expression& predicate();
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_DOWHILELOOP_H