top | up | prev | next

BoundSequenceStatement Class

Definition at line 74 of BoundStatement.hpp

Constructors

BoundSequenceStatement(const Span& span_, const boost::uuids::uuid& moduleId_, std::unique_ptr<BoundStatement>&& first_, std::unique_ptr<BoundStatement>&& second_)

Member Functions

void Accept(BoundNodeVisitor& visitor) override
BoundStatement* First()
bool IsOrContainsBoundReturnStatement() const override
BoundStatement* Second()
void SetForLoopStatementNode() override

Member Variables

std::unique_ptr<BoundStatement> first
std::unique_ptr<BoundStatement> second

Constructor Details

BoundSequenceStatement Constructor

cmajor::binder::BoundSequenceStatement::BoundSequenceStatement(const Span& span_, const boost::uuids::uuid& moduleId_, std::unique_ptr<BoundStatement >&& first_, std::unique_ptr<BoundStatement >&& second_)

Definition at line 42 of BoundStatement.cpp :
 42 :
 43 BoundStatement(span_moduleId_BoundNodeType::boundSequenceStatement)first(std::move(first_))second(std::move(second_))
 44 {
 45     first->SetParent(this);
 46     second->SetParent(this);
 47 }


Declaration at line 77 of BoundStatement.hpp


Member Function Details

Accept Member Function

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

Definition at line 49 of BoundStatement.cpp :
 50 {
 51     visitor.Visit(*this);
 52 }


Declaration at line 78 of BoundStatement.hpp

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

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


First Member Function

BoundStatement * cmajor::binder::BoundSequenceStatement::First()

Definition at line 79 of BoundStatement.hpp :
 79 { return first.get(); }

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


IsOrContainsBoundReturnStatement Member Function

bool cmajor::binder::BoundSequenceStatement::IsOrContainsBoundReturnStatement() const override

Definition at line 81 of BoundStatement.hpp :
 81 { return second->IsOrContainsBoundReturnStatement(); }

Base class overridden functions: cmajor::binder::BoundStatement::IsOrContainsBoundReturnStatement

Calls: cmajor::binder::BoundSequenceStatement::IsOrContainsBoundReturnStatement

Called by: cmajor::binder::BoundSequenceStatement::IsOrContainsBoundReturnStatement


Second Member Function

BoundStatement * cmajor::binder::BoundSequenceStatement::Second()

Definition at line 80 of BoundStatement.hpp :
 80 { return second.get(); }

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


SetForLoopStatementNode Member Function

void cmajor::binder::BoundSequenceStatement::SetForLoopStatementNode() override

Definition at line 54 of BoundStatement.cpp :
 55 {
 56     first->SetForLoopStatementNode();
 57 }


Declaration at line 82 of BoundStatement.hpp

Base class overridden functions: cmajor::binder::BoundStatement::SetForLoopStatementNode

Calls: cmajor::binder::BoundSequenceStatement::SetForLoopStatementNode

Called by: cmajor::binder::BoundSequenceStatement::SetForLoopStatementNode


top | up | prev | next