top | up | prev | next

BoundCompoundStatement Class

Definition at line 88 of BoundStatement.hpp

Constructors

BoundCompoundStatement(const BoundCompoundStatement&) delete
BoundCompoundStatement(const Span& span_, const Span& endSpan_, const boost::uuids::uuid& moduleId_)
BoundCompoundStatement(const Span& span_, const boost::uuids::uuid& moduleId_)

Member Functions

void Accept(BoundNodeVisitor& visitor) override
void AddStatement(std::unique_ptr<BoundStatement>&& statement)
const Span& EndSpan() const
void InsertStatementToFront(std::unique_ptr<BoundStatement>&& statement)
const std::vector<std::unique_ptr<BoundStatement>>& Statements() const
BoundCompoundStatement& operator=(const BoundCompoundStatement&) delete

Member Variables

Span endSpan
std::vector<std::unique_ptr<BoundStatement>> statements

Constructor Details

BoundCompoundStatement Constructor

cmajor::binder::BoundCompoundStatement::BoundCompoundStatement(const BoundCompoundStatement &) delete

Definition at line 93 of BoundStatement.hpp


BoundCompoundStatement Constructor

cmajor::binder::BoundCompoundStatement::BoundCompoundStatement(const Span& span_, const Span& endSpan_, const boost::uuids::uuid& moduleId_)

Definition at line 63 of BoundStatement.cpp :
 63 :
 64 BoundStatement(span_moduleId_BoundNodeType::boundCompoundStatement)endSpan(endSpan_)
 65 {
 66 }


Declaration at line 92 of BoundStatement.hpp


BoundCompoundStatement Constructor

cmajor::binder::BoundCompoundStatement::BoundCompoundStatement(const Span& span_, const boost::uuids::uuid& moduleId_)

Definition at line 59 of BoundStatement.cpp :
 59 : BoundStatement(span_moduleId_BoundNodeType::boundCompoundStatement)endSpan()
 60 {
 61 }


Declaration at line 91 of BoundStatement.hpp


Member Function Details

Accept Member Function

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

Definition at line 68 of BoundStatement.cpp :
 69 {
 70     visitor.Visit(*this);
 71 }


Declaration at line 95 of BoundStatement.hpp

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

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

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


AddStatement Member Function

void cmajor::binder::BoundCompoundStatement::AddStatement(std::unique_ptr<BoundStatement >&& statement)

Definition at line 79 of BoundStatement.cpp :
 80 {
 81     statement->SetParent(this);
 82     statements.push_back(std::move(statement));
 83 }


Declaration at line 97 of BoundStatement.hpp

Calls: cmajor::binder::BoundStatement::SetParent


EndSpan Member Function

const Span& cmajor::binder::BoundCompoundStatement::EndSpan() const

Definition at line 99 of BoundStatement.hpp :
 99 { return endSpan; }


InsertStatementToFront Member Function

void cmajor::binder::BoundCompoundStatement::InsertStatementToFront(std::unique_ptr<BoundStatement >&& statement)

Definition at line 73 of BoundStatement.cpp :
 74 {
 75     statement->SetParent(this);
 76     statements.insert(statements.begin()std::move(statement));
 77 }


Declaration at line 96 of BoundStatement.hpp

Calls: cmajor::binder::BoundStatement::SetParent


Statements Member Function

const std::vector<std::unique_ptr<BoundStatement >>& cmajor::binder::BoundCompoundStatement::Statements() const

Definition at line 98 of BoundStatement.hpp :
 98 { return statements; }

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


operator= Member Function

BoundCompoundStatement & cmajor::binder::BoundCompoundStatement::operator=(const BoundCompoundStatement &) delete

Definition at line 94 of BoundStatement.hpp


top | up | prev | next