mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* use new formatter for ERROR_PRINT, added ERROR_PRINTLN * remove old log define * fix comments
34 lines
669 B
C++
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
|