top | up | prev | next

BoundIfStatement Class

Definition at line 118 of BoundStatement.hpp

Constructors

BoundIfStatement(const Span& span_, const boost::uuids::uuid& moduleId_, std::unique_ptr<BoundExpression>&& condition_, std::unique_ptr<BoundStatement>&& thenS_, std::unique_ptr<BoundStatement>&& elseS_)

Member Functions

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

Member Variables

std::unique_ptr<BoundExpression> condition
std::unique_ptr<BoundStatement> elseS
std::unique_ptr<BoundStatement> thenS

Constructor Details

BoundIfStatement Constructor

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

Definition at line 95 of BoundStatement.cpp :
 95 :
 96 BoundStatement(span_moduleId_BoundNodeType::boundIfStatement)condition(std::move(condition_))thenS(std::move(thenS_))elseS(std::move(elseS_))
 97 {
 98     thenS->SetParent(this);
 99     if (elseS)
100     {
101         elseS->SetParent(this);
102     }
103 }


Declaration at line 121 of BoundStatement.hpp


Member Function Details

Accept Member Function

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

Definition at line 105 of BoundStatement.cpp :
106 {
107     visitor.Visit(*this);
108 }


Declaration at line 122 of BoundStatement.hpp

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

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


Condition Member Function

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

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


ElseS Member Function

BoundStatement * cmajor::binder::BoundIfStatement::ElseS()

Definition at line 125 of BoundStatement.hpp :
125 { return elseS.get(); }

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


ThenS Member Function

BoundStatement * cmajor::binder::BoundIfStatement::ThenS()

Definition at line 124 of BoundStatement.hpp :
124 { return thenS.get(); }

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


top | up | prev | next