top | up | prev | next

BoundWhileStatement Class

Definition at line 132 of BoundStatement.hpp

Constructors

BoundWhileStatement(const Span& span_, const boost::uuids::uuid& moduleId_, std::unique_ptr<BoundExpression>&& condition_, std::unique_ptr<BoundStatement>&& statement_)

Member Functions

void Accept(BoundNodeVisitor& visitor) override
BoundExpression* Condition()
BoundStatement* Statement()

Member Variables

std::unique_ptr<BoundExpression> condition
std::unique_ptr<BoundStatement> statement

Constructor Details

BoundWhileStatement Constructor

cmajor::binder::BoundWhileStatement::BoundWhileStatement(const Span& span_, const boost::uuids::uuid& moduleId_, std::unique_ptr<BoundExpression >&& condition_, std::unique_ptr<BoundStatement >&& statement_)

Definition at line 110 of BoundStatement.cpp :
110 :
111 BoundStatement(span_moduleId_BoundNodeType::boundWhileStatement)condition(std::move(condition_))statement(std::move(statement_))
112 {
113     statement->SetParent(this);
114 }


Declaration at line 135 of BoundStatement.hpp


Member Function Details

Accept Member Function

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

Definition at line 116 of BoundStatement.cpp :
117 {
118     visitor.Visit(*this);
119 }


Declaration at line 136 of BoundStatement.hpp

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

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


Condition Member Function

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

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


Statement Member Function

BoundStatement * cmajor::binder::BoundWhileStatement::Statement()

Definition at line 138 of BoundStatement.hpp :
138 { return statement.get(); }

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


top | up | prev | next