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

30 lines
753 B
C++

#ifndef POLSERVER_CASESTATEMENT_H
#define POLSERVER_CASESTATEMENT_H
#include "bscript/compiler/ast/LabelableStatement.h"
namespace Pol::Bscript::Compiler
{
class CaseDispatchGroup;
class CaseDispatchGroups;
class Expression;
class FlowControlLabel;
class CaseStatement : public LabelableStatement
{
public:
CaseStatement( const SourceLocation&, std::string label, std::unique_ptr<Expression>,
std::unique_ptr<CaseDispatchGroups> );
void accept( NodeVisitor& ) override;
void describe_to( std::string& ) const override;
Expression& expression();
CaseDispatchGroups& dispatch_groups();
const std::shared_ptr<FlowControlLabel> break_label;
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_CASESTATEMENT_H