mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
23 lines
525 B
C++
23 lines
525 B
C++
#ifndef POLSERVER_LABELABLESTATEMENT_H
|
|
#define POLSERVER_LABELABLESTATEMENT_H
|
|
|
|
#include "bscript/compiler/ast/Statement.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
class LabelableStatement : public Statement
|
|
{
|
|
public:
|
|
LabelableStatement( const SourceLocation&, std::string label );
|
|
|
|
const std::string& get_label() const { return label; }
|
|
|
|
private:
|
|
friend class Disambiguator;
|
|
void relabel( std::string new_label );
|
|
std::string label;
|
|
};
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
#endif // POLSERVER_LABELABLESTATEMENT_H
|