top | up | prev | next

BoundTryStatement Class

Definition at line 347 of BoundStatement.hpp

Constructors

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

Member Functions

void Accept(BoundNodeVisitor& visitor) override
void AddCatch(std::unique_ptr<BoundCatchStatement>&& catchStatement)
const std::vector<std::unique_ptr<BoundCatchStatement>>& Catches() const
void SetTryBlock(std::unique_ptr<BoundStatement>&& tryBlock_)
BoundStatement* TryBlock()

Member Variables

std::vector<std::unique_ptr<BoundCatchStatement>> catches
std::unique_ptr<BoundStatement> tryBlock

Constructor Details

BoundTryStatement Constructor

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

Definition at line 362 of BoundStatement.cpp :
362 : BoundStatement(span_moduleId_BoundNodeType::boundTryStatement)
363 {
364 }


Declaration at line 350 of BoundStatement.hpp


Member Function Details

Accept Member Function

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

Definition at line 378 of BoundStatement.cpp :
379 {
380     visitor.Visit(*this);
381 }


Declaration at line 355 of BoundStatement.hpp

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

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


AddCatch Member Function

void cmajor::binder::BoundTryStatement::AddCatch(std::unique_ptr<BoundCatchStatement >&& catchStatement)

Definition at line 372 of BoundStatement.cpp :
373 {
374     catchStatement->SetParent(this);
375     catches.push_back(std::move(catchStatement));
376 }


Declaration at line 353 of BoundStatement.hpp

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

Called by: cmajor::binder::StatementBinder::Visit


Catches Member Function

const std::vector<std::unique_ptr<BoundCatchStatement >>& cmajor::binder::BoundTryStatement::Catches() const

Definition at line 354 of BoundStatement.hpp :
354 { return catches; }


SetTryBlock Member Function

void cmajor::binder::BoundTryStatement::SetTryBlock(std::unique_ptr<BoundStatement >&& tryBlock_)

Definition at line 366 of BoundStatement.cpp :
367 {
368     tryBlock = std::move(tryBlock_);
369     tryBlock->SetParent(this);
370 }


Declaration at line 351 of BoundStatement.hpp

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

Called by: cmajor::binder::StatementBinder::Visit


TryBlock Member Function

BoundStatement * cmajor::binder::BoundTryStatement::TryBlock()

Definition at line 352 of BoundStatement.hpp :
352 { return tryBlock.get(); }

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


top | up | prev | next