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
30 lines
753 B
C++
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
|