top | up | prev | next

BoundForStatement Class

Definition at line 156 of BoundStatement.hpp

Constructors

BoundForStatement(const Span& span_, const boost::uuids::uuid& moduleId_, std::unique_ptr<BoundStatement>&& initS_, std::unique_ptr<BoundExpression>&& condition_, std::unique_ptr<BoundStatement>&& loopS_, std::unique_ptr<BoundStatement>&& actionS_)

Member Functions

void Accept(BoundNodeVisitor& visitor) override
BoundStatement* ActionS()
BoundExpression* Condition()
BoundStatement* InitS()
BoundStatement* LoopS()

Member Variables

std::unique_ptr<BoundStatement> actionS
std::unique_ptr<BoundExpression> condition
std::unique_ptr<BoundStatement> initS
std::unique_ptr<BoundStatement> loopS

Constructor Details

BoundForStatement Constructor

cmajor::binder::BoundForStatement::BoundForStatement(const Span& span_, const boost::uuids::uuid& moduleId_, std::unique_ptr<BoundStatement >&& initS_, std::unique_ptr<BoundExpression >&& condition_, std::unique_ptr<BoundStatement >&& loopS_, std::unique_ptr<BoundStatement >&& actionS_)

Definition at line 132 of BoundStatement.cpp :
133 : BoundStatement(span_moduleId_BoundNodeType::boundForStatement)initS(std::move(initS_))condition(std::move(condition_))loopS(std::move(loopS_))
134 actionS(std::move(actionS_))
135 {
136     initS->SetParent(this);
137     loopS->SetParent(this);
138     actionS->SetParent(this);
139 }


Declaration at line 159 of BoundStatement.hpp


Member Function Details

Accept Member Function

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

Definition at line 141 of BoundStatement.cpp :
142 {
143     visitor.Visit(*this);
144 }


Declaration at line 160 of BoundStatement.hpp

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

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


ActionS Member Function

BoundStatement * cmajor::binder::BoundForStatement::ActionS()

Definition at line 164 of BoundStatement.hpp :
164 { return actionS.get(); }

Called by: cmajor::binder::ControlFlowAnalyzer::Visit


Condition Member Function

BoundExpression * cmajor::binder::BoundForStatement::Condition()

Definition at line 162 of BoundStatement.hpp :
162 { return condition.get(); }


InitS Member Function

BoundStatement * cmajor::binder::BoundForStatement::InitS()

Definition at line 161 of BoundStatement.hpp :
161 { return initS.get(); }

Called by: cmajor::binder::ControlFlowAnalyzer::Visit


LoopS Member Function

BoundStatement * cmajor::binder::BoundForStatement::LoopS()

Definition at line 163 of BoundStatement.hpp :
163 { return loopS.get(); }

Called by: cmajor::binder::ControlFlowAnalyzer::Visit


top | up | prev | next