top | up | prev | next

BoundGotoStatement Class

Definition at line 247 of BoundStatement.hpp

Constructors

BoundGotoStatement(const Span& span_, const boost::uuids::uuid& moduleId_, const std::u32string& target_)

Member Functions

void Accept(BoundNodeVisitor& visitor) override
void SetTargetBlock(BoundCompoundStatement* targetBlock_)
void SetTargetStatement(BoundStatement* targetStatement_)
const std::u32string& Target() const
BoundCompoundStatement* TargetBlock()
BoundStatement* TargetStatement()

Member Variables

std::u32string target
BoundCompoundStatement* targetBlock
BoundStatement* targetStatement

Constructor Details

BoundGotoStatement Constructor

cmajor::binder::BoundGotoStatement::BoundGotoStatement(const Span& span_, const boost::uuids::uuid& moduleId_, const std::u32string& target_)

Definition at line 267 of BoundStatement.cpp :
267 :
268 BoundStatement(span_moduleId_BoundNodeType::boundGotoStatement)target(target_)targetStatement(nullptr)targetBlock(nullptr)
269 {
270 }


Declaration at line 250 of BoundStatement.hpp


Member Function Details

Accept Member Function

void cmajor::binder::BoundGotoStatement::Accept(BoundNodeVisitor & visitor) override

Definition at line 272 of BoundStatement.cpp :
273 {
274     visitor.Visit(*this);
275 }


Declaration at line 251 of BoundStatement.hpp

Base class overridden functions: cmajor::binder::BoundNode::Accept

Calls: cmajor::binder::BoundNodeVisitor::Visit


SetTargetBlock Member Function

void cmajor::binder::BoundGotoStatement::SetTargetBlock(BoundCompoundStatement * targetBlock_)

Definition at line 255 of BoundStatement.hpp :
255 { targetBlock = targetBlock_; }

Called by: cmajor::binder::ControlFlowAnalyzer::ResolveGoto


SetTargetStatement Member Function

void cmajor::binder::BoundGotoStatement::SetTargetStatement(BoundStatement * targetStatement_)

Definition at line 253 of BoundStatement.hpp :
253 { targetStatement = targetStatement_; }

Called by: cmajor::binder::ControlFlowAnalyzer::ResolveGoto


Target Member Function

const std::u32string& cmajor::binder::BoundGotoStatement::Target() const

Definition at line 252 of BoundStatement.hpp :
252 { return target; }

Called by: cmajor::binder::ControlFlowAnalyzer::ResolveGoto


TargetBlock Member Function

BoundCompoundStatement * cmajor::binder::BoundGotoStatement::TargetBlock()

Definition at line 256 of BoundStatement.hpp :
256 { return targetBlock; }


TargetStatement Member Function

BoundStatement * cmajor::binder::BoundGotoStatement::TargetStatement()

Definition at line 254 of BoundStatement.hpp :
254 { return targetStatement; }


top | up | prev | next