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

34 lines
669 B
C++

#ifndef POLSERVER_JUMPSTATEMENT_H
#define POLSERVER_JUMPSTATEMENT_H
#include "bscript/compiler/ast/Statement.h"
namespace Pol::Bscript::Compiler
{
class FlowControlLabel;
class JumpStatement : public Statement
{
public:
enum JumpType
{
Break,
Continue
};
JumpStatement( const SourceLocation&, JumpType, std::string label );
void accept( NodeVisitor& ) override;
void describe_to( std::string& ) const override;
const JumpType jump_type;
const std::string label;
std::shared_ptr<FlowControlLabel> flow_control_label;
unsigned local_variables_to_remove;
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_JUMPSTATEMENT_H