top | up | prev | next

BoundCaseStatement Class

Definition at line 191 of BoundStatement.hpp

Constructors

BoundCaseStatement(const Span& span_, const boost::uuids::uuid& moduleId_)

Member Functions

void Accept(BoundNodeVisitor& visitor) override
void AddCaseValue(std::unique_ptr<Value>&& caseValue)
void AddStatement(std::unique_ptr<BoundStatement>&& statement)
const std::vector<std::unique_ptr<Value>>& CaseValues() const
BoundCompoundStatement* CompoundStatement()

Member Variables

std::vector<std::unique_ptr<Value>> caseValues
std::unique_ptr<BoundCompoundStatement> compoundStatement

Constructor Details

BoundCaseStatement Constructor

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

Definition at line 168 of BoundStatement.cpp :
168 : BoundStatement(span_moduleId_BoundNodeType::boundCaseStatement)
169 {
170 }


Declaration at line 194 of BoundStatement.hpp


Member Function Details

Accept Member Function

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

Definition at line 196 of BoundStatement.cpp :
197 {
198     visitor.Visit(*this);
199 }


Declaration at line 199 of BoundStatement.hpp

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

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

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


AddCaseValue Member Function

void cmajor::binder::BoundCaseStatement::AddCaseValue(std::unique_ptr<Value>&& caseValue)

Definition at line 172 of BoundStatement.cpp :
173 {
174     caseValues.push_back(std::move(caseValue));
175 }



AddStatement Member Function

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

Definition at line 177 of BoundStatement.cpp
Declaration at line 197 of BoundStatement.hpp

Calls: cmajor::binder::BoundCaseStatement::AddStatement , cmajor::binder::BoundNode::GetBoundNodeType , cmajor::binder::BoundNode::GetSpan , cmajor::binder::BoundNode::ModuleId , cmajor::binder::BoundStatement::SetParent

Called by: cmajor::binder::BoundCaseStatement::AddStatement


CaseValues Member Function

const std::vector<std::unique_ptr<Value >>& cmajor::binder::BoundCaseStatement::CaseValues() const

Definition at line 196 of BoundStatement.hpp :
196 { return caseValues; }


CompoundStatement Member Function

BoundCompoundStatement * cmajor::binder::BoundCaseStatement::CompoundStatement()

Definition at line 198 of BoundStatement.hpp :
198 { return compoundStatement.get(); }

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


top | up | prev | next