Blang/src/lib/src/Statement/GotoStatement.h

30 lines
620 B
C++

#ifndef GOTOSTATEMENT_HPP
#define GOTOSTATEMENT_HPP
#include "../Statement.hpp"
#include "LabelStatement.h"
#include "../SourceLocation.hpp"
class GotoStatement : public Statement
{
public:
GotoStatement(LabelDecl* label, SourceLocation gl, SourceLocation ll);
/*LabelDecl *getLabel();
const LabelDecl *getLabel() const;
void setLabel(LabelDecl *);*/
SourceLocation getGotoLocation() const;
void setGotoLocation(SourceLocation);
SourceLocation getLabelLocation() const;
void setLabelLocation(SourceLocation);
private:
SourceLocation _gotoLoc;
LabelDecl *_label;
};
#endif