top | up | prev | next

BoundCatchStatement Class

Definition at line 361 of BoundStatement.hpp

Constructors

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

Member Functions

void Accept(BoundNodeVisitor& visitor) override
BoundStatement* CatchBlock()
LocalVariableSymbol* CatchVar()
TypeSymbol* CatchedType()
int CatchedTypeUuidId() const
void SetCatchBlock(std::unique_ptr<BoundStatement>&& catchBlock_)
void SetCatchVar(LocalVariableSymbol* catchVar_)
void SetCatchedType(TypeSymbol* catchedType_)
void SetCatchedTypeUuidId(int catchTypeUuidId_)

Member Variables

std::unique_ptr<BoundStatement> catchBlock
int catchTypeUuidId
LocalVariableSymbol* catchVar
TypeSymbol* catchedType

Constructor Details

BoundCatchStatement Constructor

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

Definition at line 383 of BoundStatement.cpp :
383 :
384 BoundStatement(span_moduleId_BoundNodeType::boundCatchStatement)catchedType(nullptr)catchTypeUuidId(-1)catchVar(nullptr)
385 {
386 }


Declaration at line 364 of BoundStatement.hpp


Member Function Details

Accept Member Function

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

Definition at line 394 of BoundStatement.cpp :
395 {
396     visitor.Visit(*this);
397 }


Declaration at line 371 of BoundStatement.hpp

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

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


CatchBlock Member Function

BoundStatement * cmajor::binder::BoundCatchStatement::CatchBlock()

Definition at line 370 of BoundStatement.hpp :
370 { return catchBlock.get(); }

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


CatchVar Member Function

LocalVariableSymbol * cmajor::binder::BoundCatchStatement::CatchVar()

Definition at line 368 of BoundStatement.hpp :
368 { return catchVar; }


CatchedType Member Function

TypeSymbol * cmajor::binder::BoundCatchStatement::CatchedType()

Definition at line 366 of BoundStatement.hpp :
366 { return catchedType; }


CatchedTypeUuidId Member Function

int cmajor::binder::BoundCatchStatement::CatchedTypeUuidId() const

Definition at line 372 of BoundStatement.hpp :
372 { return catchTypeUuidId; }


SetCatchBlock Member Function

void cmajor::binder::BoundCatchStatement::SetCatchBlock(std::unique_ptr<BoundStatement >&& catchBlock_)

Definition at line 388 of BoundStatement.cpp :
389 {
390     catchBlock = std::move(catchBlock_);
391     catchBlock->SetParent(this);
392 }


Declaration at line 369 of BoundStatement.hpp

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


SetCatchVar Member Function

void cmajor::binder::BoundCatchStatement::SetCatchVar(LocalVariableSymbol * catchVar_)

Definition at line 367 of BoundStatement.hpp :
367 { catchVar = catchVar_; }


SetCatchedType Member Function

void cmajor::binder::BoundCatchStatement::SetCatchedType(TypeSymbol * catchedType_)

Definition at line 365 of BoundStatement.hpp :
365 { catchedType = catchedType_; }


SetCatchedTypeUuidId Member Function

void cmajor::binder::BoundCatchStatement::SetCatchedTypeUuidId(int catchTypeUuidId_)

Definition at line 373 of BoundStatement.hpp :
373 { catchTypeUuidId = catchTypeUuidId_; }


top | up | prev | next