#include "Statement/GotoStatement.hpp" GotoStatement::GotoStatement(LabelDecl* label, SourceLocation gl, SourceLocation ll): _label(label), _gotoLoc(gl) { } LabelDecl *GotoStatement::getLabel() { return _label; } const LabelDecl *GotoStatement::getLabel() const { return _label; } void GotoStatement::setLabel(LabelDecl * lbl) { _label = lbl; } SourceLocation GotoStatement::getGotoLocation() const { return _gotoLoc; } void GotoStatement::setGotoLocation(SourceLocation loc) { _gotoLoc = loc; } SourceLocation GotoStatement::getLabelLocation() const { if (_Label) return _Label->getLabelLocation(); } void GotoStatement::setLabelLocation(SourceLocation loc) { if (_Label) return _Label->setLabelLocation(loc); }